#include "nanohttp-logging.h"
#include "nanohttp-error.h"
#include "nanohttp-url.h"
Go to the source code of this file.
Defines | |
#define | HTTP_DEFAULT_PORT 80 |
#define | HTTPS_DEFAULT_PORT 443 |
Functions | |
herror_t | hurl_parse (struct hurl_t *url, const char *urlstr) |
void | hurl_free (struct hurl_t *url) |
|
Definition at line 56 of file nanohttp-url.c. Referenced by hurl_parse(). |
|
Definition at line 57 of file nanohttp-url.c. Referenced by hurl_parse(). |
|
Frees the resources within a url and the url itself.
Definition at line 211 of file nanohttp-url.c. References hurl_t::context, and hurl_t::host. Referenced by httpc_free(), and httpc_new(). |
|
Parses the given 'urlstr' and fills the given hurl_t object. Parse an URI URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
Definition at line 77 of file nanohttp-url.c. References hurl_t::context, H_OK, herror_new(), hurl_t::host, HTTP_DEFAULT_PORT, HTTPS_DEFAULT_PORT, log_error1, log_error2, log_warn2, hurl_t::port, hurl_t::protocol, PROTOCOL_HTTP, PROTOCOL_HTTPS, URL_ERROR, URL_ERROR_NO_HOST, URL_ERROR_NO_PROTOCOL, and URL_ERROR_UNKNOWN_PROTOCOL. |