Click or drag to resize

FetchClientFulfillRequestAsync Method

Version 107.1.120
Provides response to the request.

Namespace:  CefSharp.DevTools.Fetch
Assembly:  CefSharp (in CefSharp.dll) Version: 107.1.120.0 (107.1.120.0)
Syntax
public Task<DevToolsMethodResponse> FulfillRequestAsync(
	string requestId,
	int responseCode,
	IList<HeaderEntry> responseHeaders = null,
	byte[] binaryResponseHeaders = null,
	byte[] body = null,
	string responsePhrase = null
)

Parameters

requestId
Type: SystemString
An id the client received in requestPaused event.
responseCode
Type: SystemInt32
An HTTP response code.
responseHeaders (Optional)
Type: System.Collections.GenericIListHeaderEntry
Response headers.
binaryResponseHeaders (Optional)
Type: SystemByte
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 (Optional)
Type: SystemByte
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 (Optional)
Type: SystemString
A textual representation of responseCode.If absent, a standard phrase matching responseCode is used.

Return Value

Type: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also