FetchClientFulfillRequestAsync Method |
Version 130.1.90
Provides response to the request.
Namespace: CefSharp.DevTools.FetchAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> FulfillRequestAsync(
string requestId,
int responseCode,
IList<HeaderEntry> responseHeaders = null,
byte[] binaryResponseHeaders = null,
byte[] body = null,
string responsePhrase = null
)
public:
Task<DevToolsMethodResponse^>^ FulfillRequestAsync(
String^ requestId,
int responseCode,
IList<HeaderEntry^>^ responseHeaders = nullptr,
array<unsigned char>^ binaryResponseHeaders = nullptr,
array<unsigned char>^ body = nullptr,
String^ responsePhrase = nullptr
)
Parameters
- requestId String
- An id the client received in requestPaused event.
- responseCode Int32
- An HTTP response code.
- responseHeaders IListHeaderEntry (Optional)
- Response headers.
- binaryResponseHeaders Byte (Optional)
- Alternative way of specifying response headers as a \0-separatedseries of name: value pairs. Prefer the above method unless youneed to represent some non-UTF8 values that can't be transmittedover the protocol as text.
- body Byte (Optional)
- A response body. If absent, original response body will be used ifthe request is intercepted at the response stage and empty bodywill be used if the request is intercepted at the request stage.
- responsePhrase String (Optional)
- A textual representation of responseCode.If absent, a standard phrase matching responseCode is used.
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also