|
Handler for static files (.html, .js, .png, etc) More...
#include <WSStaticHttpProtocol.h>
Public Member Functions | |
| WSStaticHttpProtocol (TCPSocket *socket, const URL &url, const HttpHeaders &headers, const String &staticFilesDirectory) | |
| Constructor. More... | |
| RequestInfo | process () override |
| Process method. More... | |
Public Member Functions inherited from sptk::WSProtocol | |
| WSProtocol (TCPSocket *socket, const HttpHeaders &headers) | |
| WSProtocol (const WSProtocol &)=delete | |
| virtual | ~WSProtocol () |
| WSProtocol & | operator= (const WSProtocol &)=delete |
| virtual RequestInfo | process ()=0 |
| Process virtual method - to be implemented in derived classes. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from sptk::WSProtocol | |
| TCPSocket & | socket () |
| HttpHeaders & | headers () |
| String | header (const sptk::String &name) |
Handler for static files (.html, .js, .png, etc)
Session disconnects as soon as file is served.
|
overridevirtual |
Process method.
Writes HTTP response and file content to the connection
Implements sptk::WSProtocol.