#include <wx/webview.h>
A class giving access to various webview response parameters.
Usually a wxWebViewHandler() would set various parameters required for the response like HTTP status, various headers and must then call Finish() to complete the response or call FinishWithError() to abort the request.
Public Member Functions | |
virtual void | SetStatus (int status)=0 |
Sets the status code of the response. More... | |
virtual void | SetContentType (const wxString &contentType)=0 |
Sets the MIME type of the response. More... | |
virtual void | SetHeader (const wxString &name, const wxString &value)=0 |
Sets a response header which will be sent to the web view. More... | |
virtual void | Finish (wxSharedPtr< wxWebViewHandlerResponseData > data)=0 |
Finishes the request with binary data. More... | |
virtual void | Finish (const wxString &text, const wxMBConv &conv=wxConvUTF8) |
Finishes the request with text data. More... | |
virtual void | FinishWithError ()=0 |
Finishes the request as an error. More... | |
|
virtual |
Finishes the request with text data.
text | Text content of the response (can be empty) |
conv | Conversion used when sending the text in the response |
|
pure virtual |
Finishes the request with binary data.
data | The data object will be dereferenced when the request is completed |
|
pure virtual |
Finishes the request as an error.
This will notify that the request could not produce any data.
|
pure virtual |
Sets the MIME type of the response.
contentType | MIME type of the response content |
|
pure virtual |
Sets a response header which will be sent to the web view.
The header will be added if it hasn't been set before or replaced otherwise.
name | Name of the header |
value | String value of the header |
|
pure virtual |
Sets the status code of the response.
status | HTTP status code |