Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | List of all members
toolbox::http::Request Class Reference

#include <toolbox/http/Request.hpp>

Inheritance diagram for toolbox::http::Request:
Inheritance graph
[legend]
Collaboration diagram for toolbox::http::Request:
Collaboration graph
[legend]

Public Member Functions

 Request ()=default
 
 ~Request ()
 
 Request (const Request &)=delete
 
Requestoperator= (const Request &)=delete
 
 Request (Request &&)=delete
 
Requestoperator= (Request &&)=delete
 
Method method () const noexcept
 
const std::string & url () const noexcept
 
const Headersheaders () const noexcept
 
const std::string & body () const noexcept
 
void clear () noexcept
 
void flush ()
 
void set_method (Method method) noexcept
 
void append_url (std::string_view sv)
 
void append_header_field (std::string_view sv, First first)
 
void append_header_value (std::string_view sv, First)
 
void append_body (std::string_view sv)
 
- Public Member Functions inherited from toolbox::http::BasicUrl< Request >
 BasicUrl () noexcept
 
 BasicUrl (const BasicUrl &) noexcept=default
 
 BasicUrl (BasicUrl &&) noexcept=default
 
BasicUrloperator= (const BasicUrl &) noexcept=default
 
BasicUrloperator= (BasicUrl &&) noexcept=default
 
auto schema () const noexcept
 
auto host () const noexcept
 
auto port () const noexcept
 
auto path () const noexcept
 
auto query () const noexcept
 
auto fragment () const noexcept
 
auto user_info () const noexcept
 
 BasicUrl () noexcept
 
 BasicUrl (const BasicUrl &) noexcept=default
 
 BasicUrl (BasicUrl &&) noexcept=default
 
BasicUrloperator= (const BasicUrl &) noexcept=default
 
BasicUrloperator= (BasicUrl &&) noexcept=default
 
auto schema () const noexcept
 
auto host () const noexcept
 
auto port () const noexcept
 
auto path () const noexcept
 
auto query () const noexcept
 
auto fragment () const noexcept
 
auto user_info () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from toolbox::http::BasicUrl< Request >
 ~BasicUrl ()=default
 
void reset () noexcept
 
void parse (bool is_connect=false)
 
 ~BasicUrl ()=default
 
void reset () noexcept
 
void parse (bool is_connect=false)
 

Detailed Description

Definition at line 29 of file Request.hpp.

Constructor & Destructor Documentation

◆ Request() [1/3]

toolbox::http::Request::Request ( )
default

◆ ~Request()

toolbox::http::Request::~Request ( )
default

◆ Request() [2/3]

toolbox::http::Request::Request ( const Request )
delete

◆ Request() [3/3]

toolbox::http::Request::Request ( Request &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

Request & toolbox::http::Request::operator= ( const Request )
delete

◆ operator=() [2/2]

Request & toolbox::http::Request::operator= ( Request &&  )
delete

◆ method()

Method toolbox::http::Request::method ( ) const
inlinenoexcept

Definition at line 42 of file Request.hpp.

◆ url()

const std::string & toolbox::http::Request::url ( ) const
inlinenoexcept

Definition at line 43 of file Request.hpp.

◆ headers()

const Headers & toolbox::http::Request::headers ( ) const
inlinenoexcept

Definition at line 44 of file Request.hpp.

◆ body()

const std::string & toolbox::http::Request::body ( ) const
inlinenoexcept

Definition at line 45 of file Request.hpp.

◆ clear()

void toolbox::http::Request::clear ( )
inlinenoexcept

Definition at line 47 of file Request.hpp.

◆ flush()

void toolbox::http::Request::flush ( )
inline

Definition at line 54 of file Request.hpp.

◆ set_method()

void toolbox::http::Request::set_method ( Method  method)
inlinenoexcept

Definition at line 55 of file Request.hpp.

◆ append_url()

void toolbox::http::Request::append_url ( std::string_view  sv)
inline

Definition at line 56 of file Request.hpp.

◆ append_header_field()

void toolbox::http::Request::append_header_field ( std::string_view  sv,
First  first 
)
inline

Definition at line 57 of file Request.hpp.

◆ append_header_value()

void toolbox::http::Request::append_header_value ( std::string_view  sv,
First   
)
inline

Definition at line 65 of file Request.hpp.

◆ append_body()

void toolbox::http::Request::append_body ( std::string_view  sv)
inline

Definition at line 69 of file Request.hpp.


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