C++ edjLibrary SDK
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
edjx::fetch::FetchResponsePending Struct Reference

A pending Fetch response. More...

#include <fetch.hpp>

Public Member Functions

 FetchResponsePending ()
 
 FetchResponsePending (uint32_t sd)
 
edjx::error::HttpError get_fetch_response (FetchResponse &result)
 Get the server's response. More...
 

Public Attributes

uint32_t sd
 Stream descriptor. More...
 

Detailed Description

A pending Fetch response.

This struct is used as a placeholder for a response from the server during Fetch request streaming, before an actual server response is received.

Once a response is received from the server, it can be retrieved via the get_fetch_response() method.

Constructor & Destructor Documentation

◆ FetchResponsePending() [1/2]

edjx::fetch::FetchResponsePending::FetchResponsePending ( )
inline

◆ FetchResponsePending() [2/2]

edjx::fetch::FetchResponsePending::FetchResponsePending ( uint32_t  sd)
inline

Member Function Documentation

◆ get_fetch_response()

edjx::error::HttpError edjx::fetch::FetchResponsePending::get_fetch_response ( FetchResponse result)

Get the server's response.

Parameters
resultServer's response will be copied to this object.
Returns
Returns edjx::error::HttpError::Success on success, some other value on failure.

Member Data Documentation

◆ sd

uint32_t edjx::fetch::FetchResponsePending::sd

Stream descriptor.


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