Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
dlight/http.h
Henrik Hautakoski b2df740514 Initial commit
2011-09-21 17:13:28 +02:00

20 lines
323 B
C

#ifndef HTTP_H
#define HTTP_H
#include <stddef.h>
struct http_data {
void *block;
size_t len;
};
struct http_data* http_fetch_page(const char *url);
int http_download_page(const char *url, const char *file);
int http_download_file(const char *url, const char *dir);
void http_free(struct http_data *data);
#endif