Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::HttpRequest Struct Reference

Http request received from a client. More...

#include <HttpServer.h>

Public Member Functions

bool find (HttpParser::Result result, StringView &res) const
 Finds a specific HttpParser::Result in the list of parsed header. More...
 
const HttpParsergetParser () const
 Gets the associated HttpParser. More...
 
StringView getURL () const
 Gets the request URL. More...
 

Friends

struct HttpServer
 

Detailed Description

Http request received from a client.

Member Function Documentation

◆ find()

bool SC::HttpRequest::find ( HttpParser::Result  result,
StringView res 
) const

Finds a specific HttpParser::Result in the list of parsed header.

Parameters
resultThe result to look for (Method, Url etc.)
resA StringView, pointing at headerBuffer containing the found result
Returns
true if the result has been found

◆ getParser()

const HttpParser & SC::HttpRequest::getParser ( ) const
inline

Gets the associated HttpParser.

◆ getURL()

StringView SC::HttpRequest::getURL ( ) const
inline

Gets the request URL.


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