Table of Contents

Class ResponsePolicyDecision

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class ResponsePolicyDecision : PolicyDecision, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
ResponsePolicyDecision
Implements
Inherited Members

Constructors

ResponsePolicyDecision(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public ResponsePolicyDecision(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ResponsePolicyDecision(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ResponsePolicyDecision(CreationData data)

Parameters

data CreationData

ResponsePolicyDecision(ResponsePolicyDecisionHandle)

protected ResponsePolicyDecision(ResponsePolicyDecisionHandle handle)

Parameters

handle ResponsePolicyDecisionHandle

Fields

RequestPropertyDefinition

public static readonly Property<URIRequest?, ResponsePolicyDecision> RequestPropertyDefinition

Field Value

Property<URIRequest, ResponsePolicyDecision>

ResponsePropertyDefinition

public static readonly Property<URIResponse?, ResponsePolicyDecision> ResponsePropertyDefinition

Field Value

Property<URIResponse, ResponsePolicyDecision>

Properties

Request

public URIRequest? Request { get; }

Property Value

URIRequest

Response

public URIResponse? Response { get; }

Property Value

URIResponse

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetRequest()

public URIRequest GetRequest()

Returns

URIRequest

GetResponse()

public URIResponse GetResponse()

Returns

URIResponse

IsMainFrameMainResource()

[Version("2.40")]
public bool IsMainFrameMainResource()

Returns

bool

IsMimeTypeSupported()

[Version("2.4")]
public bool IsMimeTypeSupported()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed ResponsePolicyDecision instance for a given pointer.

public static ResponsePolicyDecision NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ResponsePolicyDecision

NewWithProperties(ConstructArgument[])

Creates a new ResponsePolicyDecision and sets the properties specified by the construct arguments.

public static ResponsePolicyDecision NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ResponsePolicyDecision