NetSurf
Functions
content-disposition.c File Reference
#include <stdlib.h>
#include "utils/http.h"
#include "utils/http/generics.h"
#include "utils/http/parameter_internal.h"
#include "utils/http/primitives.h"
Include dependency graph for content-disposition.c:

Go to the source code of this file.

Functions

nserror http_parse_content_disposition (const char *header_value, http_content_disposition **result)
 Parse an HTTP Content-Disposition header value. More...
 
void http_content_disposition_destroy (http_content_disposition *victim)
 Destroy a content disposition object. More...
 

Function Documentation

◆ http_content_disposition_destroy()

void http_content_disposition_destroy ( http_content_disposition victim)

Destroy a content disposition object.

Parameters
victimObject to destroy

Definition at line 72 of file content-disposition.c.

References http_content_disposition::disposition_type, http_parameter_list_destroy(), and http_content_disposition::parameters.

Referenced by download_context_process_headers().

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

◆ http_parse_content_disposition()

nserror http_parse_content_disposition ( const char *  header_value,
http_content_disposition **  result 
)

Parse an HTTP Content-Disposition header value.

Parameters
header_valueHeader value to parse
resultPointer to location to receive result
Returns
NSERROR_OK on success, NSERROR_NOMEM on memory exhaustion

Definition at line 28 of file content-disposition.c.

References cd, http__item_list_parse, http__parse_parameter(), http__parse_token(), http__skip_LWS(), http_parameter_list_destroy(), NSERROR_NOMEM, NSERROR_NOT_FOUND, NSERROR_OK, and result.

Referenced by download_context_process_headers().

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