Lines Matching refs:Connection
53 Connection::Connection(CURL* curl_handle,
57 : http::Connection(transport),
61 // Store the connection pointer inside the CURL handle so we can easily
64 VLOG(2) << "curl::Connection created: " << method_;
67 Connection::~Connection() {
71 VLOG(2) << "curl::Connection destroyed";
74 bool Connection::SendHeaders(const HeaderList& headers,
80 bool Connection::SetRequestData(StreamPtr stream,
86 void Connection::SetResponseData(StreamPtr stream) {
90 void Connection::PrepareRequest() {
119 curl_handle_, CURLOPT_READFUNCTION, &Connection::read_callback);
143 curl_handle_, CURLOPT_WRITEFUNCTION, &Connection::write_callback);
149 curl_handle_, CURLOPT_HEADERFUNCTION, &Connection::header_callback);
153 bool Connection::FinishRequest(brillo::ErrorPtr* error) {
169 RequestID Connection::FinishRequestAsync(
176 int Connection::GetResponseStatusCode() const {
183 std::string Connection::GetResponseStatusText() const {
187 std::string Connection::GetProtocolVersion() const {
191 std::string Connection::GetResponseHeader(
197 StreamPtr Connection::ExtractDataStream(brillo::ErrorPtr* error) {
204 size_t Connection::write_callback(char* ptr,
208 Connection* me = reinterpret_cast<Connection*>(data);
222 size_t Connection::read_callback(char* ptr,
226 Connection* me = reinterpret_cast<Connection*>(data);
236 size_t Connection::header_callback(char* ptr,
241 Connection* me = reinterpret_cast<Connection*>(data);