Table of Contents

Class WebResource

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

Constructors

WebResource(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 WebResource(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

WebResource(CreationData)

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

Parameters

data CreationData

WebResource(WebResourceHandle)

protected WebResource(WebResourceHandle handle)

Parameters

handle WebResourceHandle

Fields

FailedSignal

Signal Descriptor for OnFailed.

public static readonly Signal<WebResource, WebResource.FailedSignalArgs> FailedSignal

Field Value

Signal<WebResource, WebResource.FailedSignalArgs>

FailedWithTlsErrorsSignal

Signal Descriptor for OnFailedWithTlsErrors.

public static readonly Signal<WebResource, WebResource.FailedWithTlsErrorsSignalArgs> FailedWithTlsErrorsSignal

Field Value

Signal<WebResource, WebResource.FailedWithTlsErrorsSignalArgs>

FinishedSignal

Signal Descriptor for OnFinished.

public static readonly Signal<WebResource> FinishedSignal

Field Value

Signal<WebResource>

ResponsePropertyDefinition

public static readonly Property<URIResponse?, WebResource> ResponsePropertyDefinition

Field Value

Property<URIResponse, WebResource>

SentRequestSignal

Signal Descriptor for OnSentRequest.

public static readonly Signal<WebResource, WebResource.SentRequestSignalArgs> SentRequestSignal

Field Value

Signal<WebResource, WebResource.SentRequestSignalArgs>

UriPropertyDefinition

public static readonly Property<string?, WebResource> UriPropertyDefinition

Field Value

Property<string, WebResource>

Properties

Response

public URIResponse? Response { get; }

Property Value

URIResponse

Uri

public string? Uri { get; }

Property Value

string

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetResponse()

public URIResponse GetResponse()

Returns

URIResponse

GetUri()

public string GetUri()

Returns

string

NewFromPointer(nint, bool)

Creates a new managed WebResource instance for a given pointer.

public static WebResource NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

WebResource

NewWithProperties(ConstructArgument[])

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

public static WebResource NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

WebResource

Events

OnFailed

public event SignalHandler<WebResource, WebResource.FailedSignalArgs> OnFailed

Event Type

SignalHandler<WebResource, WebResource.FailedSignalArgs>

OnFailedWithTlsErrors

public event SignalHandler<WebResource, WebResource.FailedWithTlsErrorsSignalArgs> OnFailedWithTlsErrors

Event Type

SignalHandler<WebResource, WebResource.FailedWithTlsErrorsSignalArgs>

OnFinished

public event SignalHandler<WebResource> OnFinished

Event Type

SignalHandler<WebResource>

OnSentRequest

public event SignalHandler<WebResource, WebResource.SentRequestSignalArgs> OnSentRequest

Event Type

SignalHandler<WebResource, WebResource.SentRequestSignalArgs>