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

The web-server "Request Data" container. More...

#include <HttpServer.h>

Public Member Functions

const char * getBuf ()
 Get pointer to start of PUT/POST data. More...
 
S32 getBufSize ()
 Get the number of bytes currently available from getBuf(). More...
 

Usage and lifecycle

The web-server "Request Data" container.

Member Function Documentation

◆ getBuf()

const char * HttpInData::getBuf ( )

Get pointer to start of PUT/POST data.

Returns
Pointer to start of PUT/POST data.

◆ getBufSize()

S32 HttpInData::getBufSize ( )

Get the number of bytes currently available from getBuf().

Returns
Buffered byte count, not the allocation capacity or total body length. Use HttpStdHeaders::getContentLength for a declared body length. If the body is chunked or larger than the available data, use HttpRecData or the asynchronous receive API instead of assuming the whole body is buffered.