IResourceHandlerGetResponseHeaders Method |
Version 130.1.90
Retrieve response header information. If the response length is not known
set
responseLength to -1 and ReadResponse() will be called until it
returns false. If the response length is known set
responseLength
to a positive value and ReadResponse() will be called until it returns
false or the specified number of bytes have been read.
It is also possible to set
response to a redirect http status code
and pass the new URL via a Location header. Likewise with
redirectUrl it
is valid to set a relative or fully qualified URL as the Location header
value. If an error occured while setting up the request you can call
ErrorCode on
response to indicate the error condition.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax void GetResponseHeaders(
IResponse response,
out long responseLength,
out string redirectUrl
)
void GetResponseHeaders(
IResponse^ response,
[OutAttribute] long long% responseLength,
[OutAttribute] String^% redirectUrl
)
Parameters
- response IResponse
- Use the response object to set the mime type, http status code and other optional header values.
- responseLength Int64
- If the response length is not known set responseLength to -1
- redirectUrl String
- To redirect the request to a new URL set this to the new URL. Can be either a relative or fully qualified URL.
See Also