NetSurf
Data Structures | Typedefs | Functions
content-disposition.h File Reference
#include <libwapcaplet/libwapcaplet.h>
#include "utils/http/parameter.h"
Include dependency graph for content-disposition.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  http_content_disposition
 

Typedefs

typedef struct http_content_disposition http_content_disposition
 

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...
 

Typedef Documentation

◆ http_content_disposition

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: