bitz-server  2.0.3
Public Member Functions | List of all members
icap::Request Class Reference

Public Member Functions

 Request (RequestHeader *req_header)
 
RequestHeader *const header () const throw ()
 
void payload (payload_t payload) throw ()
 
const payload_tpayload () const throw ()
 
const int preview_size () throw ()
 

Member Function Documentation

◆ header()

RequestHeader *const icap::Request::header ( ) const
throw (
)

Return the request header

Returns
request header

◆ payload() [1/2]

void icap::Request::payload ( payload_t  payload)
throw (
)

Set the payload data for this response instance from a icap::payload_t data structure

Parameters
payloadpayload data structure

◆ payload() [2/2]

const payload_t & icap::Request::payload ( ) const
throw (
)

Return the payload data for this response instance

Returns
payload data

◆ preview_size()

const int icap::Request::preview_size ( )
throw (
)

Returns the number of preview bytes in the request. If the preview header is not present in the request then a minus (-1) value will be returned.

Returns
preview bytes