NetSurf
Functions
parameter_internal.h File Reference
#include "utils/errors.h"
#include "utils/http/parameter.h"
Include dependency graph for parameter_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror http__parse_parameter (const char **input, http_parameter **parameter)
 Parse an HTTP parameter. More...
 

Function Documentation

◆ http__parse_parameter()

nserror http__parse_parameter ( const char **  input,
http_parameter **  parameter 
)

Parse an HTTP parameter.

Parameters
inputPointer to current input byte. Updated on exit.
parameterPointer to location to receive on-heap parameter.
Returns
NSERROR_OK on success, NSERROR_NOMEM on memory exhaustion, NSERROR_NOT_FOUND if no parameter could be parsed

The returned parameter is owned by the caller.

Definition at line 61 of file parameter.c.

References HTTP__ITEM_INIT, http__parse_quoted_string(), http__parse_token(), http__skip_LWS(), http_destroy_parameter(), http_parameter::name, NSERROR_NOMEM, NSERROR_NOT_FOUND, NSERROR_OK, and http_parameter::value.

Referenced by http__parse_challenge(), http_parse_content_disposition(), and http_parse_content_type().

Here is the call graph for this function:
Here is the caller graph for this function: