Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
HttpClientKeyVal Struct Reference

Detailed Description

A container for key/value pairs used when setting custom HTTP headers or URL encoded HTTP parameters.

HttpClientKeyVal can be statically declared at compile time or be dynamically created during runtime. A dynamically created HttpClientKeyVal can be released as soon as HttpClient::request returns.

Example code:

HttpClientKeyVal myHeaders[]={
{"the-header-name","the header value"},
{"foo","bar"},
{0,0} // Terminator
};
A container for key/value pairs used when setting custom HTTP headers or URL encoded HTTP parameters.
Definition: HttpClient.h:90

#include <HttpClient.h>

Public Attributes

const char * key
 NUL-terminated name; NULL terminates an input array. More...
 
const char * val
 Required NUL-terminated value for a non-NULL key. More...
 

Member Data Documentation

◆ key

const char* HttpClientKeyVal::key

NUL-terminated name; NULL terminates an input array.

◆ val

const char* HttpClientKeyVal::val

Required NUL-terminated value for a non-NULL key.