coreHTTP  v2.0.0
HTTP/1.1 Client Library
HTTPClient_ResponseHeaderParsingCallback Struct Reference

Callback to intercept headers during the first parse through of the response as it is received from the network. More...

#include <core_http_client.h>

Data Fields

void(* onHeaderCallback )(void *pContext, const char *fieldLoc, size_t fieldLen, const char *valueLoc, size_t valueLen, uint16_t statusCode)
 Invoked when both a header field and its associated header value are found. More...
 
void * pContext
 Private context for the application.
 

Detailed Description

Callback to intercept headers during the first parse through of the response as it is received from the network.

Field Documentation

◆ onHeaderCallback

void( * HTTPClient_ResponseHeaderParsingCallback::onHeaderCallback) (void *pContext, const char *fieldLoc, size_t fieldLen, const char *valueLoc, size_t valueLen, uint16_t statusCode)

Invoked when both a header field and its associated header value are found.

Parameters
[in]pContextUser context.
[in]fieldLocLocation of the header field name in the response buffer.
[in]fieldLenLength in bytes of the field name.
[in]valueLocLocation of the header value in the response buffer.
[in]valueLenLength in bytes of the value.
[in]statusCodeThe HTTP response status-code.

The documentation for this struct was generated from the following file: