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
constructArgumentsConstructArgument[]
WebResource(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WebResource(CreationData data)
Parameters
dataCreationData
WebResource(WebResourceHandle)
protected WebResource(WebResourceHandle handle)
Parameters
handleWebResourceHandle
Fields
FailedSignal
Signal Descriptor for OnFailed.
public static readonly Signal<WebResource, WebResource.FailedSignalArgs> FailedSignal
Field Value
FailedWithTlsErrorsSignal
Signal Descriptor for OnFailedWithTlsErrors.
public static readonly Signal<WebResource, WebResource.FailedWithTlsErrorsSignalArgs> FailedWithTlsErrorsSignal
Field Value
FinishedSignal
Signal Descriptor for OnFinished.
public static readonly Signal<WebResource> FinishedSignal
Field Value
ResponsePropertyDefinition
public static readonly Property<URIResponse?, WebResource> ResponsePropertyDefinition
Field Value
SentRequestSignal
Signal Descriptor for OnSentRequest.
public static readonly Signal<WebResource, WebResource.SentRequestSignalArgs> SentRequestSignal
Field Value
UriPropertyDefinition
public static readonly Property<string?, WebResource> UriPropertyDefinition
Field Value
Properties
Response
public URIResponse? Response { get; }
Property Value
Uri
public string? Uri { get; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetResponse()
public URIResponse GetResponse()
Returns
GetUri()
public string GetUri()
Returns
NewFromPointer(nint, bool)
Creates a new managed WebResource instance for a given pointer.
public static WebResource NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new WebResource and sets the properties specified by the construct arguments.
public static WebResource NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Events
OnFailed
public event SignalHandler<WebResource, WebResource.FailedSignalArgs> OnFailed
Event Type
OnFailedWithTlsErrors
public event SignalHandler<WebResource, WebResource.FailedWithTlsErrorsSignalArgs> OnFailedWithTlsErrors
Event Type
OnFinished
public event SignalHandler<WebResource> OnFinished
Event Type
OnSentRequest
public event SignalHandler<WebResource, WebResource.SentRequestSignalArgs> OnSentRequest