added:
* win32_slim.h: includes the minimal version of windows.h modified: * cthread: added lock_t c++ class * os: added getUserName() * socket: modified socket_len_t to sk_len_t to better follow naming convetions in file * str: added operator std::string() to str_t
This commit is contained in:
parent
7fdc8b5301
commit
bce93361b1
16 changed files with 187 additions and 70 deletions
4
http.h
4
http.h
|
|
@ -97,7 +97,7 @@ typedef struct {
|
|||
int status_code;
|
||||
field_vec_t fields;
|
||||
http_version_t version;
|
||||
char *body;
|
||||
str_t body;
|
||||
} http_response_t;
|
||||
|
||||
http_response_t resInit(void);
|
||||
|
|
@ -112,7 +112,7 @@ void resParseFields(http_response_t *ctx, str_istream_t *in);
|
|||
// == HTTP CLIENT =============================================================
|
||||
|
||||
typedef struct {
|
||||
char *host_name;
|
||||
str_t host_name;
|
||||
uint16_t port;
|
||||
socket_t socket;
|
||||
} http_client_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue