Bitcoin Core 31.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
HTTPResponseHeaders Class Reference

Parses the headers of an HTTP response. More...

Public Member Functions

void Read (util::LineReader &reader)
 
std::optional< std::string > FindFirst (std::string_view key) const
 

Private Attributes

std::vector< std::pair< std::string, std::string > > m_headers
 

Detailed Description

Parses the headers of an HTTP response.

May be replaced by the corresponding methods in HTTPHeaders from https://github.com/bitcoin/bitcoin/pull/35182 once that class is in a shared location.

Definition at line 92 of file bitcoin-cli.cpp.

Member Function Documentation

◆ FindFirst()

std::optional< std::string > HTTPResponseHeaders::FindFirst ( std::string_view  key) const

Definition at line 131 of file bitcoin-cli.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Read()

void HTTPResponseHeaders::Read ( util::LineReader reader)

Definition at line 102 of file bitcoin-cli.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_headers

std::vector<std::pair<std::string, std::string> > HTTPResponseHeaders::m_headers
private

Definition at line 94 of file bitcoin-cli.cpp.


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