45 lwc_string_unref(self->
scheme);
63 const char *pos = *input;
79 if (*pos !=
' ' && *pos !=
'\t') {
80 lwc_string_unref(scheme);
88 lwc_string_unref(scheme);
98 lwc_string_unref(scheme);
108 lwc_string_unref(scheme);
129 *scheme = lwc_string_ref(cur->
scheme);
130 *parameters = cur->
params;
static void http_destroy_challenge(http_challenge *self)
Destroy an HTTP challenge.
nserror http__parse_challenge(const char **input, http_challenge **challenge)
Parse an HTTP challenge.
const http_challenge * http_challenge_list_iterate(const http_challenge *cur, lwc_string **scheme, http_parameter **parameters)
Iterate over a challenge list.
void http_challenge_list_destroy(http_challenge *list)
Destroy a list of HTTP challenges.
nserror
Enumeration of error codes.
@ NSERROR_NOT_FOUND
Requested item not found.
@ NSERROR_NOMEM
Memory exhaustion.
#define http__item_list_destroy(l)
#define HTTP__ITEM_INIT(item, n, f)
#define http__item_list_parse(i, p, f, r)
HTTP header parsing functions.
void http_parameter_list_destroy(http_parameter *list)
Destroy a list of HTTP parameters.
nserror http__parse_parameter(const char **input, http_parameter **parameter)
Parse an HTTP parameter.
nserror http__parse_token(const char **input, lwc_string **value)
Parse an HTTP token.
void http__skip_LWS(const char **input)
Skip past linear whitespace in input.
Representation of an item.
struct http__item * next
Next item in list, or NULL.
Representation of an HTTP challenge.
http_parameter * params
Challenge parameters.
lwc_string * scheme
Challenge scheme.
Representation of an HTTP parameter.