An interface for setting response headers emulating a http implementation.
更多...
#include <IWebBrowserSchemeHandler.h>
|
| virtual void | SetContentLength (int32 ContentLength)=0 |
| | Sets the content length for the response. 更多...
|
| |
| virtual void | SetHeader (const TCHAR *Key, const TCHAR *Value)=0 |
| | Sets a header for the response. 更多...
|
| |
| virtual void | SetMimeType (const TCHAR *MimeType)=0 |
| | Sets the mime type for the response. 更多...
|
| |
| virtual void | SetRedirect (const TCHAR *Url)=0 |
| | Sets a redirect url for the response. 更多...
|
| |
| virtual void | SetStatusCode (int32 StatusCode)=0 |
| | Sets the status code for the response. 更多...
|
| |
An interface for setting response headers emulating a http implementation.
◆ SetContentLength()
| virtual void IWebBrowserSchemeHandler::IHeaders::SetContentLength |
( |
int32 |
ContentLength | ) |
|
|
pure virtual |
Sets the content length for the response.
- 参数
-
| ContentLength | The size of the response content in bytes. |
◆ SetHeader()
| virtual void IWebBrowserSchemeHandler::IHeaders::SetHeader |
( |
const TCHAR * |
Key, |
|
|
const TCHAR * |
Value |
|
) |
| |
|
pure virtual |
Sets a header for the response.
- 参数
-
| Key | The header key. |
| Value | The header value. |
◆ SetMimeType()
| virtual void IWebBrowserSchemeHandler::IHeaders::SetMimeType |
( |
const TCHAR * |
MimeType | ) |
|
|
pure virtual |
Sets the mime type for the response.
- 参数
-
◆ SetRedirect()
| virtual void IWebBrowserSchemeHandler::IHeaders::SetRedirect |
( |
const TCHAR * |
Url | ) |
|
|
pure virtual |
Sets a redirect url for the response.
Other calls will be ignored if this is used.
- 参数
-
| Url | The url to redirect to. |
◆ SetStatusCode()
| virtual void IWebBrowserSchemeHandler::IHeaders::SetStatusCode |
( |
int32 |
StatusCode | ) |
|
|
pure virtual |
Sets the status code for the response.
- 参数
-
| StatusCode | The status code. |
该类的文档由以下文件生成:
- IWebBrowserSchemeHandler.h