Skip to content

Commit 5ed8c2f

Browse files
JMouniertux3
authored andcommitted
feat(http): update http reverse bindings
1 parent ed67edd commit 5ed8c2f

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

cffi_defs.h

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
6672
struct 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

7682
struct 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;
8593
typedef struct tanker_http_request tanker_http_request_t;
8694
typedef struct tanker_http_response tanker_http_response_t;
8795

0 commit comments

Comments
 (0)