FastLED 3.9.15
Loading...
Searching...
No Matches
fl::asio::http::Request Class Reference

Detailed Description

HTTP request object (immutable, passed by const reference)

Definition at line 48 of file server.h.

#include <server.h>

+ Collaboration diagram for fl::asio::http::Request:

Public Member Functions

 Request () FL_NOEXCEPT=default
 
const stringbody () const
 Get request body (for POST/PUT requests)
 
bool has_body () const
 Check if request has a body.
 
optional< stringheader (const string &name) const
 Get header value by name (case-insensitive)
 
const stringhttp_version () const
 Get HTTP version (e.g., "HTTP/1.1")
 
bool is_get () const
 Check if request is GET.
 
bool is_post () const
 Check if request is POST.
 
const stringmethod () const
 Get HTTP method (e.g., "GET", "POST", "PUT", "DELETE")
 
const stringpath () const
 Get request path (e.g., "/", "/api/status")
 
optional< stringquery (const string &param) const
 Get query parameter value by name.
 

Private Attributes

string mBody
 
map< string, stringmHeaders
 
string mHttpVersion
 
string mMethod
 
string mPath
 
map< string, stringmQuery
 

Friends

class Server
 

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