-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtpio_http_apis.h
More file actions
17 lines (11 loc) · 809 Bytes
/
tpio_http_apis.h
File metadata and controls
17 lines (11 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
// tpio_context::buffer point to HTTP_REQUEST
auto tpio_http_receive_http_request( tpio_handle, handle_t q, tpio_context* ctx ) ->void;
// tpio_context::buffer point to a buffer
auto tpio_http_receive_request_entity_body( tpio_handle, handle_t q, http_id rid, tpio_context* ctx ) -> void;
// tpio_context::buffer points to HTTP_RESPONSE
auto tpio_http_send_http_response( tpio_handle, handle_t q, http_id rid, tpio_context* ctx, bool send_not_end ) -> void;
// tpio_context::buffer points to http_response_body_t
auto tpio_http_send_response_entity_body( tpio_handle, handle_t q, http_id rid, tpio_context* ctx, bool send_not_end ) -> void;
// tpio_context::buffer is nullptr
auto tpio_http_cancel_http_request( tpio_handle, handle_t q, http_id rid, tpio_context* )->void;