s4:lib/http: use http_conn in http_send_request_send() and http_read_response_send()
[bbaumbach/samba-autobuild/.git] / source4 / lib / http / http.h
index 25055c91007550cce3b2d4b776daa33ea1b1da69..f2196031f0321a919e2cee59013e0ca386d8448a 100644 (file)
@@ -118,15 +118,14 @@ struct tstream_context *http_conn_tstream(struct http_conn *http_conn);
 /* HTTP request */
 struct tevent_req *http_send_request_send(TALLOC_CTX *,
                                          struct tevent_context *,
-                                         struct tstream_context *,
-                                         struct tevent_queue *,
+                                         struct http_conn *,
                                          struct http_request *);
 NTSTATUS http_send_request_recv(struct tevent_req *);
 
 /* HTTP response */
 struct tevent_req *http_read_response_send(TALLOC_CTX *,
                                           struct tevent_context *,
-                                          struct tstream_context *,
+                                          struct http_conn *,
                                           size_t max_content_length);
 NTSTATUS http_read_response_recv(struct tevent_req *,
                            TALLOC_CTX *,
@@ -135,8 +134,7 @@ NTSTATUS http_read_response_recv(struct tevent_req *,
 /* HTTP authenticated request */
 struct tevent_req *http_send_auth_request_send(TALLOC_CTX *,
                                               struct tevent_context *,
-                                              struct tstream_context *,
-                                              struct tevent_queue *,
+                                              struct http_conn *,
                                               const struct http_request *,
                                               struct cli_credentials *,
                                               struct loadparm_context *,