Lines Matching refs:request_
133 request_.reset(new HTTPRequest(connection_, &dispatcher_, &sockets_));
135 request_->dns_client_.reset(dns_client_);
137 request_->server_async_connection_.reset(server_async_connection_);
140 if (request_->is_running_) {
145 request_.reset();
150 reinterpret_cast<char*>(request_->request_data_.GetData()),
151 request_->request_data_.GetLength());
156 return request_->request_data_;
158 HTTPRequest* request() { return request_.get(); }
163 EXPECT_EQ(connection_.get(), request_->connection_.get());
164 EXPECT_EQ(&dispatcher_, request_->dispatcher_);
165 EXPECT_EQ(&sockets_, request_->sockets_);
166 EXPECT_TRUE(request_->result_callback_.is_null());
167 EXPECT_TRUE(request_->read_event_callback_.is_null());
168 EXPECT_FALSE(request_->connect_completion_callback_.is_null());
169 EXPECT_FALSE(request_->dns_client_callback_.is_null());
170 EXPECT_FALSE(request_->read_server_callback_.is_null());
171 EXPECT_FALSE(request_->write_server_callback_.is_null());
172 EXPECT_FALSE(request_->read_server_handler_.get());
173 EXPECT_FALSE(request_->write_server_handler_.get());
174 EXPECT_EQ(dns_client_, request_->dns_client_.get());
176 request_->server_async_connection_.get());
177 EXPECT_TRUE(request_->server_hostname_.empty());
178 EXPECT_EQ(-1, request_->server_port_);
179 EXPECT_EQ(-1, request_->server_socket_);
180 EXPECT_EQ(HTTPRequest::kResultUnknown, request_->timeout_result_);
181 EXPECT_TRUE(request_->request_data_.IsEmpty());
182 EXPECT_TRUE(request_->response_data_.IsEmpty());
183 EXPECT_FALSE(request_->is_running_);
186 if (request_->server_socket_ != -1) {
207 reinterpret_cast<char*>(request_->response_data_.GetData()),
208 request_->response_data_.GetLength());
227 request_->OnConnectCompletion(success, fd);
241 CallbackEq(request_->read_server_callback_),
250 CallbackEq(request_->write_server_callback_)))
280 request_->GetDNSResult(error, address);
284 request_->GetDNSResult(error, address);
287 request_->OnConnectCompletion(result, sockfd);
294 request_->ReadFromServer(&server_data);
297 request_->WriteToServer(fd);
302 return request_->Start(http_url,
327 request_->TimeoutTask();
330 request_->OnServerReadError(string());
344 std::unique_ptr<HTTPRequest> request_;