File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,37 +61,10 @@ struct tanker_error
6161 char const * message ;
6262};
6363
64- // ctanker/network.h
64+ // ctanker/http.h There is no HTTP revese bindings for python
6565
66- struct tanker_http_header
67- {
68- char const * name ;
69- char const * value ;
70- };
71-
72- struct tanker_http_request
73- {
74- char const * method ;
75- char const * url ;
76- struct tanker_http_header * headers ;
77- int32_t num_headers ;
78- char const * body ;
79- int32_t body_size ;
80- };
81-
82- struct tanker_http_response
83- {
84- char const * error_msg ;
85- struct tanker_http_header * headers ;
86- int32_t num_headers ;
87- char const * body ;
88- int64_t body_size ;
89- int32_t status_code ;
90- };
91-
92- typedef struct tanker_http_header tanker_http_header_t ;
66+ // foward declarations to satisfy FFI
9367typedef struct tanker_http_request tanker_http_request_t ;
94- typedef struct tanker_http_response tanker_http_response_t ;
9568
9669typedef void tanker_http_request_handle_t ;
9770
@@ -111,9 +84,6 @@ struct tanker_http_options
11184
11285typedef struct tanker_http_options tanker_http_options_t ;
11386
114- void tanker_http_handle_response (tanker_http_request_t * ,
115- tanker_http_response_t * );
116-
11787// ctanker/datastore.h
11888
11989enum tanker_datastore_error_code
You can’t perform that action at this time.
0 commit comments