Nebula
Loading...
Searching...
No Matches
displaypagehandler.h
Go to the documentation of this file.
1#pragma once
2#ifndef DEBUG_DISPLAYPAGEHANDLER_H
3#define DEBUG_DISPLAYPAGEHANDLER_H
4//------------------------------------------------------------------------------
23
24//------------------------------------------------------------------------------
25namespace Debug
26{
28{
30public:
34 virtual void HandleRequest(const Ptr<Http::HttpRequest>& request);
35
36private:
40 Http::HttpStatus::Code WriteScreenshot(const Util::String& fileFormat, const Ptr<IO::Stream>& responseContentStream);
41};
42
43} // namespace Debug
44//------------------------------------------------------------------------------
45#endif
46
Code
enum
Definition adapter.h:23
Provide information about the display to the debug http server.
Definition displaypagehandler.h:28
__DeclareClass(DisplayPageHandler)
virtual void HandleRequest(const Ptr< Http::HttpRequest > &request)
handle a http request, the handler is expected to fill the content stream with response data
Definition displaypagehandler.cc:35
Http::HttpStatus::Code WriteScreenshot(const Util::String &fileFormat, const Ptr< IO::Stream > &responseContentStream)
write a screenshot
Definition displaypagehandler.cc:225
void WriteAdapterInfo(CoreGraphics::Adapter::Code adapter, const Ptr< Http::HtmlPageWriter > &htmlWriter)
write info about an adapter
Definition displaypagehandler.cc:143
DisplayPageHandler()
constructor
Definition displaypagehandler.cc:24
HttpRequestHandlers are attached to the HttpServer and process incoming HTTP requests.
Definition httprequesthandler.h:31
Code
status codes
Definition httpstatus.h:24
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition corepagehandler.cc:13
Nebula's universal string class.
Definition string.h:50