clan::WebResponse Class Reference

HTTP web response class. More...

#include <web_response.h>

Public Member Functions

 WebResponse ()
 
DataBuffer get_body ()
 
std::string get_body_string ()
 
std::string get_content_type ()
 
std::string get_header_field (const std::string &name)
 
int get_status_code ()
 
std::string get_status_string ()
 
bool has_content_type ()
 
bool has_header_field (const std::string &name)
 

Friends

class WebRequest
 

Detailed Description

HTTP web response class.

Constructor & Destructor Documentation

◆ WebResponse()

clan::WebResponse::WebResponse ( )

Member Function Documentation

◆ get_body()

DataBuffer clan::WebResponse::get_body ( )

◆ get_body_string()

std::string clan::WebResponse::get_body_string ( )

◆ get_content_type()

std::string clan::WebResponse::get_content_type ( )

◆ get_header_field()

std::string clan::WebResponse::get_header_field ( const std::string &  name)

◆ get_status_code()

int clan::WebResponse::get_status_code ( )

◆ get_status_string()

std::string clan::WebResponse::get_status_string ( )

◆ has_content_type()

bool clan::WebResponse::has_content_type ( )

◆ has_header_field()

bool clan::WebResponse::has_header_field ( const std::string &  name)

Friends And Related Function Documentation

◆ WebRequest

friend class WebRequest
friend

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