MySQL 8.0.40
Source Code Documentation
HttpHeaders Class Reference

headers of a HTTP response/request. More...

#include <http_request.h>

Classes

struct  impl
 
class  Iterator
 

Public Member Functions

 HttpHeaders (HttpHeaders &&)
 
 ~HttpHeaders ()
 
int add (const char *key, const char *value)
 add a header. More...
 
const char * get (const char *key) const
 get a header. More...
 
Iterator begin ()
 
Iterator end ()
 

Private Member Functions

 HttpHeaders (std::unique_ptr< impl > &&impl)
 

Private Attributes

std::unique_ptr< implpImpl_
 

Friends

class HttpRequest
 

Detailed Description

headers of a HTTP response/request.

Constructor & Destructor Documentation

◆ HttpHeaders() [1/2]

HttpHeaders::HttpHeaders ( HttpHeaders &&  )
default

◆ ~HttpHeaders()

HttpHeaders::~HttpHeaders ( )
default

◆ HttpHeaders() [2/2]

HttpHeaders::HttpHeaders ( std::unique_ptr< impl > &&  impl)
private

Member Function Documentation

◆ add()

int HttpHeaders::add ( const char *  key,
const char *  value 
)

add a header.

◆ begin()

HttpHeaders::Iterator HttpHeaders::begin ( )

◆ end()

HttpHeaders::Iterator HttpHeaders::end ( )

◆ get()

const char * HttpHeaders::get ( const char *  key) const

get a header.

Friends And Related Function Documentation

◆ HttpRequest

friend class HttpRequest
friend

Member Data Documentation

◆ pImpl_

std::unique_ptr<impl> HttpHeaders::pImpl_
private

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