diff options
author | Marvin Borner | 2020-12-03 22:26:46 +0100 |
---|---|---|
committer | Marvin Borner | 2020-12-03 22:26:46 +0100 |
commit | cd2dbb2e146562c9e37c614bb09a24f7fbf135e0 (patch) | |
tree | 12605be6b6dfe837f1a2ebefef3cfbc1ed8536e5 /libnet/inc/http.h | |
parent | d525526f52c76156c4b9ee5ee4f14ed0d06547bc (diff) |
Quite important network stuff
Diffstat (limited to 'libnet/inc/http.h')
-rw-r--r-- | libnet/inc/http.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnet/inc/http.h b/libnet/inc/http.h index 223bdfc..45709c6 100644 --- a/libnet/inc/http.h +++ b/libnet/inc/http.h @@ -4,12 +4,16 @@ #define HTTP_H #include <def.h> +#include <socket.h> char *http_data(char *response); +char *http_header_key(char *r, const char *key); +u32 http_content_length(char *r); char *http_code(char *r); u32 http_response(const char *http_code, u32 content_length, const char *data, char *resp); char *http_query_get(const char *url, const char *path); char *http_query_path(const char *query, char *path); +char *http_receive(struct socket *socket); #define HTTP_100 "100 Continue" #define HTTP_101 "101 Switching Protocol" |