From be1fa7dfe5d98cf636b8f54ea80152f47006203b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Nov 2020 22:12:40 +0100 Subject: HTTP and browser stuff --- libnet/inc/http.h | 10 ++++++++++ libnet/inc/net.h | 1 + 2 files changed, 11 insertions(+) create mode 100644 libnet/inc/http.h (limited to 'libnet/inc') diff --git a/libnet/inc/http.h b/libnet/inc/http.h new file mode 100644 index 0000000..30de9ba --- /dev/null +++ b/libnet/inc/http.h @@ -0,0 +1,10 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#ifndef HTTP_H +#define HTTP_H + +char *http_data(char *response); +char *http_query_get(const char *url, const char *path); +char *http_code(char *r); + +#endif diff --git a/libnet/inc/net.h b/libnet/inc/net.h index fa4284c..6ff9619 100644 --- a/libnet/inc/net.h +++ b/libnet/inc/net.h @@ -3,6 +3,7 @@ #ifndef NET_H #define NET_H +#include <http.h> #include <socket.h> #include <sys.h> -- cgit v1.2.3