8#include <openssl/types.h>
53void url_free(
struct url *
url);
60 struct addrinfo *addrinfo;
63struct dispatch *fetch_socket(
const char *
url,
const char *init[4]);
78 char header_buf[8192];
82 size_t content_length;
85 bool reading_chunk_size;
87 size_t chunk_line_len;
88 size_t current_chunk_size;
103void *fetcher(
void *arg);
A python-inspired API for general C scripts.
Buffer pointer + length.
Definition pyc.h:24
char * host
A string containing the domain (that is the hostname) followed by (if a port was specified) a ':' and...
Definition fetch.h:22
char * pathname
A string containing an initial '/' followed by the path of the URL, not including the query string or...
Definition fetch.h:37
struct str port
A string containing the port number of the URL.
Definition fetch.h:44
struct str hostname
A string containing the domain of the URL.
Definition fetch.h:29
struct str protocol
A string containing the protocol scheme of the URL, including the final ':'.
Definition fetch.h:51