File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,25 +63,33 @@ struct tanker_error
6363
6464// ctanker/network.h
6565
66+ struct tanker_http_header
67+ {
68+ char const * name ;
69+ char const * value ;
70+ };
71+
6672struct tanker_http_request
6773{
6874 char const * method ;
6975 char const * url ;
70- char const * instance_id ;
71- char const * authorization ;
76+ struct tanker_http_header * headers ;
77+ int32_t num_headers ;
7278 char const * body ;
7379 int32_t body_size ;
7480};
7581
7682struct tanker_http_response
7783{
7884 char const * error_msg ;
79- char const * content_type ;
85+ struct tanker_http_header * headers ;
86+ int32_t num_headers ;
8087 char const * body ;
8188 int64_t body_size ;
8289 int32_t status_code ;
8390};
8491
92+ typedef struct tanker_http_header tanker_http_header_t ;
8593typedef struct tanker_http_request tanker_http_request_t ;
8694typedef struct tanker_http_response tanker_http_response_t ;
8795
You can’t perform that action at this time.
0 commit comments