headers.h
131 );
183 uint32_t index,
#define FIFTYONE_DEGREES_HEADERS_MEMBERS
True if the headers structure should expect input header to be prefixed with 'HTTP_'.
Definition: headers.h:154
fiftyoneDegreesHeader * fiftyoneDegreesHeadersGetHeaderFromUniqueId(fiftyoneDegreesHeaders *headers, fiftyoneDegreesHeaderID uniqueId)
Gets a pointer to the header in the headers structure with a unique id matching the one provided.
void fiftyoneDegreesHeadersFree(fiftyoneDegreesHeaders *headers)
Frees the memory allocated by the fiftyoneDegreesHeadersCreate method.
Used to store a handle to the underlying item that could be used to release the item when it's finish...
Definition: collection.h:309
uint32_t fiftyoneDegreesHeaderID
The unique id for the header field string in the data set.
Definition: headers.h:114
fiftyoneDegreesHeaders * fiftyoneDegreesHeadersCreate(bool useUpperPrefixedHeaders, void *state, fiftyoneDegreesHeadersGetMethod get, fiftyoneDegreesException *exception)
Creates a new headers instance configured with the unique HTTP names needed from evidence.
fiftyoneDegreesHeader * fiftyoneDegreesHeaderPtr
Pointer to a header structure.
Definition: headers.h:124
fiftyoneDegreesHeaderPtrs * pseudoHeaders
Array of pointers to related pseudo headers.
Definition: headers.h:147
Structure for a header known to the corresponding data set.
Definition: headers.h:137
size_t nameLength
Length of the name string excluding the terminating null.
Definition: headers.h:141
uint32_t index
Index of the header in the array of all headers.
Definition: headers.h:138
bool isDataSet
True if the header originates from the data set and the headerId is valid.
Definition: headers.h:145
fiftyoneDegreesHeaderID headerId
Unique id in the data set for this full header.
Definition: headers.h:143
bool fiftyoneDegreesHeadersIsHttp(void *state, const char *field, size_t length)
Determines if the field is an HTTP header.
Array of Headers which should always be ordered in ascending order of fullHeaderId.
Definition: headers.h:167
fiftyoneDegreesHeaderPtrs * segmentHeaders
Array of pointers to raw headers that form this pseudo header.
Definition: headers.h:149
Structure used to represent a 51Degrees exception and passed into methods that might generate excepti...
Definition: exceptions.h:111
const char * name
Name of the header or pseudo header field as a null terminated string.
Definition: headers.h:139
fiftyoneDegreesHeaderArray fiftyoneDegreesHeaders
Array of headers used to easily access and track the size of the array.
Definition: headers.h:167
int fiftyoneDegreesHeaderGetIndex(fiftyoneDegreesHeaders *headers, const char *httpHeaderName, size_t length)
Provides the integer index of the HTTP header name, or -1 if there is no matching header.
#define FIFTYONE_DEGREES_ARRAY_TYPE(t, m)
Simple array structure definition macro used for generic types.
Definition: array.h:51
long(* fiftyoneDegreesHeadersGetMethod)(void *state, uint32_t index, fiftyoneDegreesCollectionItem *nameItem)
Gets the unique id and name of the header at the requested index.
Definition: headers.h:183
