From cd2dbb2e146562c9e37c614bb09a24f7fbf135e0 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 3 Dec 2020 22:26:46 +0100 Subject: Quite important network stuff --- libnet/inc/http.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libnet/inc/http.h') 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 +#include 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" -- cgit v1.2.3