Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpAsyncClientResponse Struct Reference

Incoming HTTP response received by the client. More...

#include <HttpConnection.h>

Inheritance diagram for SC::HttpAsyncClientResponse:
SC::HttpIncomingMessage

Friends

struct HttpAsyncClient
 

Additional Inherited Members

- Public Member Functions inherited from SC::HttpIncomingMessage
const HttpParsergetParser () const
 Gets the associated HttpParser.
 
bool getKeepAlive () const
 Gets whether the other party requested the connection to stay alive.
 
uint64_t getBodyBytesRemaining () const
 Returns how many body bytes are still expected for this message.
 
bool isMultipart () const
 Checks if the request is a multipart/form-data request.
 
StringSpan getBoundary () const
 Gets the multipart boundary string (if isMultipart() returns true)
 
bool getHeader (StringSpan headerName, StringSpan &value) const
 Gets the value of a specific header (case-insensitive name matching)
 
AsyncReadableStreamgetReadableStream ()
 Obtains the readable stream for the message body.
 
const AsyncReadableStreamgetReadableStream () const
 Obtains the readable stream for the message body.
 
Result consumeBodyBytes (size_t bytes)
 Decrements the remaining body bytes after consuming data.
 
- Protected Member Functions inherited from SC::HttpIncomingMessage
void resetIncoming (HttpParser::Type type, Span< char > memory)
 
bool hasReceivedHeaders () const
 
Span< char > getUnusedHeaderMemory () const
 
void attachReadableStream (AsyncReadableStream &stream)
 
void setBodyBytesRemaining (uint64_t value)
 
bool findParserToken (HttpParser::Token token, StringSpan &res) const
 Finds a specific HttpParser::Result in the list of parsed header.
 
Result writeHeaders (const uint32_t maxHeaderSize, Span< const char > readData, AsyncReadableStream &stream, AsyncBufferView::ID bufferID, const char *outOfSpaceError, const char *sizeExceededError, bool stopAtHeadersEnd)
 Parses an incoming slice of data eventually copying it to the availableHeader.
 
size_t getHeadersLength () const
 Gets the length of the headers in bytes.
 
- Protected Attributes inherited from SC::HttpIncomingMessage
HttpParsedHeaders parsedHeaders
 
Span< char > headerMemory
 
AsyncReadableStreamreadableStream = nullptr
 
uint64_t bodyBytesRemaining = 0
 

Detailed Description

Incoming HTTP response received by the client.


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