|
|||
|
|||
|
#include <httpd.h>
Inheritance diagram for HTTPHeaders:


Public Member Functions | |
| void | SetHeader (const std::string &name, const std::string &data) |
| Set the value of a header Sets the value of the named header. | |
| void | CreateHeader (const std::string &name, const std::string &data) |
| Set the value of a header, only if it doesn't exist already Sets the value of the named header. | |
| void | RemoveHeader (const std::string &name) |
| Remove the named header. | |
| void | Clear () |
| Remove all headers. | |
| std::string | GetHeader (const std::string &name) |
| Get the value of a header. | |
| bool | IsSet (const std::string &name) |
| Check if the given header is specified. | |
| std::string | GetFormattedHeaders () |
| Get all headers, formatted by the HTTP protocol. | |
Protected Attributes | |
| std::map< std::string, std::string > | headers |
Definition at line 25 of file httpd.h.
|
|
Remove all headers.
Definition at line 57 of file httpd.h. References headers. |
|
||||||||||||
|
Set the value of a header, only if it doesn't exist already Sets the value of the named header. If the header is already present, it will NOT be updated Definition at line 42 of file httpd.h. References IsSet(), and SetHeader(). Referenced by HttpServerSocket::SendHeaders(). |
|
|
Get all headers, formatted by the HTTP protocol.
Definition at line 86 of file httpd.h. References headers. Referenced by HttpServerSocket::SendHeaders(). |
|
|
Get the value of a header.
Definition at line 65 of file httpd.h. References headers. Referenced by HttpServerSocket::CheckRequestBuffer(), and ModuleHTTPAccessList::OnEvent(). |
|
|
Check if the given header is specified.
Definition at line 77 of file httpd.h. References headers. Referenced by HttpServerSocket::CheckRequestBuffer(), CreateHeader(), and ModuleHTTPAccessList::OnEvent(). |
|
|
Remove the named header.
Definition at line 50 of file httpd.h. References headers. Referenced by HttpServerSocket::SendHeaders(). |
|
||||||||||||
|
Set the value of a header Sets the value of the named header. If the header is already present, it will be replaced Definition at line 34 of file httpd.h. References headers. Referenced by ModuleHTTPAccessList::BlockAccess(), HttpServerSocket::CheckRequestBuffer(), CreateHeader(), ModuleRpcJson::OnEvent(), ModuleHttpStats::OnEvent(), and HttpServerSocket::SendHeaders(). |
|
|
Definition at line 28 of file httpd.h. Referenced by Clear(), GetFormattedHeaders(), GetHeader(), IsSet(), RemoveHeader(), and SetHeader(). |