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

Parsed response metadata filled when headers arrive. More...

#include <HttpClient.h>

Public Types

enum class  Protocol : uint8_t {
  Unknown ,
  Http11 ,
  Http2
}
 

Public Member Functions

bool getHeader (StringSpan name, StringSpan &value) const
 

Public Attributes

int statusCode = 0
 HTTP status code (e.g. 200, 404)
 
Span< const char > headers
 
size_t headersLength = 0
 
Protocol negotiatedProtocol = Protocol::Unknown
 

Detailed Description

Parsed response metadata filled when headers arrive.

Member Data Documentation

◆ statusCode

int SC::HttpClientResponse::statusCode = 0

HTTP status code (e.g. 200, 404)


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