http_request_delete_header

March 26, 2020 Contributors

Name

http_request_delete_header — Delete a header from an HTTP request

Synopsis

#include "modules/delivery/http/httpclnt.h"

| int **http_request_delete_header** ( | sess, |   |
|   | header); |   |

http_session *<var class="pdparam">sess</var>;
const char *<var class="pdparam">header</var>;

Description

**Configuration Change. ** This function is available as of version 3.6.

Delete a header from an HTTP request. You must call http_request_finalize after invoking this function.

Parameters

sess

The http_session. For a description of this data type see “http_session”.

header

A character pointer to the header.

Return Values

On success this function returns 1 and on failure 0.

Threading

It is legal to call this function in any thread.

See Also

http_request_finalize