#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.
- Since
- 3.3.0
- See also
- wxWebViewHandler::StartRequest()
◆ Finish() [1/2]
| virtual void wxWebViewHandlerResponse::Finish |
( |
const wxString & | text, |
|
|
const wxMBConv & | conv = wxConvUTF8 ) |
|
virtual |
◆ Finish() [2/2]
◆ FinishWithError()
| virtual void wxWebViewHandlerResponse::FinishWithError |
( |
| ) |
|
|
pure virtual |
Finishes the request as an error.
This will notify that the request could not produce any data.
- See also
- Finish()
◆ SetContentType()
| virtual void wxWebViewHandlerResponse::SetContentType |
( |
const wxString & | contentType | ) |
|
|
pure virtual |
Sets the MIME type of the response.
- Parameters
-
| contentType | MIME type of the response content |
◆ SetHeader()
| virtual void wxWebViewHandlerResponse::SetHeader |
( |
const wxString & | name, |
|
|
const wxString & | value ) |
|
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.
- Parameters
-
| name | Name of the header |
| value | String value of the header |
◆ SetStatus()
| virtual void wxWebViewHandlerResponse::SetStatus |
( |
int | status | ) |
|
|
pure virtual |
Sets the status code of the response.
- Parameters
-