Table of Contents

Class Message

Namespace
Soup
Assembly
Soup-3.0.dll
public sealed class Message : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Message
Implements
Inherited Members

Constructors

Message(bool, params ConstructArgument[])

protected Message(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Message(IntPtr, bool)

protected Message(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AcceptCertificateSignal

Signal Descriptor for OnAcceptCertificate.

public static readonly ReturningSignal<Message, Message.AcceptCertificateSignalArgs, bool> AcceptCertificateSignal

Field Value

ReturningSignal<Message, Message.AcceptCertificateSignalArgs, bool>

AuthenticateSignal

Signal Descriptor for OnAuthenticate.

public static readonly ReturningSignal<Message, Message.AuthenticateSignalArgs, bool> AuthenticateSignal

Field Value

ReturningSignal<Message, Message.AuthenticateSignalArgs, bool>

ContentSniffedSignal

Signal Descriptor for OnContentSniffed.

public static readonly Signal<Message, Message.ContentSniffedSignalArgs> ContentSniffedSignal

Field Value

Signal<Message, Message.ContentSniffedSignalArgs>

FinishedSignal

Signal Descriptor for OnFinished.

public static readonly Signal<Message> FinishedSignal

Field Value

Signal<Message>

FirstPartyPropertyDefinition

public static readonly Property<Uri, Message> FirstPartyPropertyDefinition

Field Value

Property<Uri, Message>

FlagsPropertyDefinition

public static readonly Property<MessageFlags, Message> FlagsPropertyDefinition

Field Value

Property<MessageFlags, Message>

GotBodyDataSignal

Signal Descriptor for OnGotBodyData.

public static readonly Signal<Message, Message.GotBodyDataSignalArgs> GotBodyDataSignal

Field Value

Signal<Message, Message.GotBodyDataSignalArgs>

GotBodySignal

Signal Descriptor for OnGotBody.

public static readonly Signal<Message> GotBodySignal

Field Value

Signal<Message>

GotHeadersSignal

Signal Descriptor for OnGotHeaders.

public static readonly Signal<Message> GotHeadersSignal

Field Value

Signal<Message>

GotInformationalSignal

Signal Descriptor for OnGotInformational.

public static readonly Signal<Message> GotInformationalSignal

Field Value

Signal<Message>

HstsEnforcedSignal

Signal Descriptor for OnHstsEnforced.

public static readonly Signal<Message> HstsEnforcedSignal

Field Value

Signal<Message>

HttpVersionPropertyDefinition

public static readonly Property<HTTPVersion, Message> HttpVersionPropertyDefinition

Field Value

Property<HTTPVersion, Message>

IsOptionsPingPropertyDefinition

public static readonly Property<bool, Message> IsOptionsPingPropertyDefinition

Field Value

Property<bool, Message>

IsTopLevelNavigationPropertyDefinition

public static readonly Property<bool, Message> IsTopLevelNavigationPropertyDefinition

Field Value

Property<bool, Message>

MethodPropertyDefinition

public static readonly Property<string?, Message> MethodPropertyDefinition

Field Value

Property<string, Message>

NetworkEventSignal

Signal Descriptor for OnNetworkEvent.

public static readonly Signal<Message, Message.NetworkEventSignalArgs> NetworkEventSignal

Field Value

Signal<Message, Message.NetworkEventSignalArgs>

PriorityPropertyDefinition

public static readonly Property<MessagePriority, Message> PriorityPropertyDefinition

Field Value

Property<MessagePriority, Message>

ReasonPhrasePropertyDefinition

public static readonly Property<string?, Message> ReasonPhrasePropertyDefinition

Field Value

Property<string, Message>

RemoteAddressPropertyDefinition

public static readonly Property<SocketAddress?, Message> RemoteAddressPropertyDefinition

Field Value

Property<SocketAddress, Message>

RequestCertificatePasswordSignal

Signal Descriptor for OnRequestCertificatePassword.

public static readonly ReturningSignal<Message, Message.RequestCertificatePasswordSignalArgs, bool> RequestCertificatePasswordSignal

Field Value

ReturningSignal<Message, Message.RequestCertificatePasswordSignalArgs, bool>

RequestCertificateSignal

Signal Descriptor for OnRequestCertificate.

public static readonly ReturningSignal<Message, Message.RequestCertificateSignalArgs, bool> RequestCertificateSignal

Field Value

ReturningSignal<Message, Message.RequestCertificateSignalArgs, bool>

RequestHeadersPropertyDefinition

public static readonly Property<MessageHeaders, Message> RequestHeadersPropertyDefinition

Field Value

Property<MessageHeaders, Message>

ResponseHeadersPropertyDefinition

public static readonly Property<MessageHeaders, Message> ResponseHeadersPropertyDefinition

Field Value

Property<MessageHeaders, Message>

RestartedSignal

Signal Descriptor for OnRestarted.

public static readonly Signal<Message> RestartedSignal

Field Value

Signal<Message>

SiteForCookiesPropertyDefinition

public static readonly Property<Uri, Message> SiteForCookiesPropertyDefinition

Field Value

Property<Uri, Message>

StartingSignal

Signal Descriptor for OnStarting.

public static readonly Signal<Message> StartingSignal

Field Value

Signal<Message>

StatusCodePropertyDefinition

public static readonly Property<uint, Message> StatusCodePropertyDefinition

Field Value

Property<uint, Message>

TlsCiphersuiteNamePropertyDefinition

public static readonly Property<string?, Message> TlsCiphersuiteNamePropertyDefinition

Field Value

Property<string, Message>

TlsPeerCertificateErrorsPropertyDefinition

public static readonly Property<TlsCertificateFlags, Message> TlsPeerCertificateErrorsPropertyDefinition

Field Value

Property<TlsCertificateFlags, Message>

TlsPeerCertificatePropertyDefinition

public static readonly Property<TlsCertificate?, Message> TlsPeerCertificatePropertyDefinition

Field Value

Property<TlsCertificate, Message>

TlsProtocolVersionPropertyDefinition

public static readonly Property<TlsProtocolVersion, Message> TlsProtocolVersionPropertyDefinition

Field Value

Property<TlsProtocolVersion, Message>

UriPropertyDefinition

public static readonly Property<Uri, Message> UriPropertyDefinition

Field Value

Property<Uri, Message>

WroteBodyDataSignal

Signal Descriptor for OnWroteBodyData.

public static readonly Signal<Message, Message.WroteBodyDataSignalArgs> WroteBodyDataSignal

Field Value

Signal<Message, Message.WroteBodyDataSignalArgs>

WroteBodySignal

Signal Descriptor for OnWroteBody.

public static readonly Signal<Message> WroteBodySignal

Field Value

Signal<Message>

WroteHeadersSignal

Signal Descriptor for OnWroteHeaders.

public static readonly Signal<Message> WroteHeadersSignal

Field Value

Signal<Message>

Properties

FirstParty

public Uri FirstParty { get; set; }

Property Value

Uri

Flags

public MessageFlags Flags { get; set; }

Property Value

MessageFlags

HttpVersion

public HTTPVersion HttpVersion { get; }

Property Value

HTTPVersion

IsOptionsPing

public bool IsOptionsPing { get; set; }

Property Value

bool

IsTopLevelNavigation

public bool IsTopLevelNavigation { get; set; }

Property Value

bool

Method

public string? Method { get; set; }

Property Value

string

Priority

public MessagePriority Priority { get; set; }

Property Value

MessagePriority

ReasonPhrase

public string? ReasonPhrase { get; }

Property Value

string

RemoteAddress

public SocketAddress? RemoteAddress { get; }

Property Value

SocketAddress

RequestHeaders

public MessageHeaders RequestHeaders { get; }

Property Value

MessageHeaders

ResponseHeaders

public MessageHeaders ResponseHeaders { get; }

Property Value

MessageHeaders

SiteForCookies

public Uri SiteForCookies { get; set; }

Property Value

Uri

StatusCode

public uint StatusCode { get; }

Property Value

uint

TlsCiphersuiteName

public string? TlsCiphersuiteName { get; }

Property Value

string

TlsPeerCertificate

public TlsCertificate? TlsPeerCertificate { get; }

Property Value

TlsCertificate

TlsPeerCertificateErrors

public TlsCertificateFlags TlsPeerCertificateErrors { get; }

Property Value

TlsCertificateFlags

TlsProtocolVersion

public TlsProtocolVersion TlsProtocolVersion { get; }

Property Value

TlsProtocolVersion

Uri

public Uri Uri { get; set; }

Property Value

Uri

Methods

AddFlags(MessageFlags)

public void AddFlags(MessageFlags flags)

Parameters

flags MessageFlags

DisableFeature(Type)

public void DisableFeature(Type featureType)

Parameters

featureType Type

GetConnectionId()

public ulong GetConnectionId()

Returns

ulong

GetFirstParty()

public Uri GetFirstParty()

Returns

Uri

GetFlags()

public MessageFlags GetFlags()

Returns

MessageFlags

GetForceHttp1()

[Version("3.4")]
public bool GetForceHttp1()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetHttpVersion()

public HTTPVersion GetHttpVersion()

Returns

HTTPVersion

GetIsOptionsPing()

public bool GetIsOptionsPing()

Returns

bool

GetIsTopLevelNavigation()

public bool GetIsTopLevelNavigation()

Returns

bool

GetMethod()

public string GetMethod()

Returns

string

GetMetrics()

public MessageMetrics? GetMetrics()

Returns

MessageMetrics

GetPriority()

public MessagePriority GetPriority()

Returns

MessagePriority

GetReasonPhrase()

public string? GetReasonPhrase()

Returns

string

GetRemoteAddress()

public SocketAddress? GetRemoteAddress()

Returns

SocketAddress

GetRequestHeaders()

public MessageHeaders GetRequestHeaders()

Returns

MessageHeaders

GetResponseHeaders()

public MessageHeaders GetResponseHeaders()

Returns

MessageHeaders

GetSiteForCookies()

public Uri GetSiteForCookies()

Returns

Uri

GetStatus()

public Status GetStatus()

Returns

Status

GetTlsCiphersuiteName()

public string GetTlsCiphersuiteName()

Returns

string

GetTlsPeerCertificate()

public TlsCertificate? GetTlsPeerCertificate()

Returns

TlsCertificate

GetTlsPeerCertificateErrors()

public TlsCertificateFlags GetTlsPeerCertificateErrors()

Returns

TlsCertificateFlags

GetTlsProtocolVersion()

public TlsProtocolVersion GetTlsProtocolVersion()

Returns

TlsProtocolVersion

GetUri()

public Uri GetUri()

Returns

Uri

IsFeatureDisabled(Type)

public bool IsFeatureDisabled(Type featureType)

Parameters

featureType Type

Returns

bool

IsKeepalive()

public bool IsKeepalive()

Returns

bool

New(string, string)

public static Message? New(string method, string uriString)

Parameters

method string
uriString string

Returns

Message

NewFromEncodedForm(string, string, string)

public static Message? NewFromEncodedForm(string method, string uriString, string encodedForm)

Parameters

method string
uriString string
encodedForm string

Returns

Message

NewFromMultipart(string, Multipart)

public static Message? NewFromMultipart(string uriString, Multipart multipart)

Parameters

uriString string
multipart Multipart

Returns

Message

NewFromUri(string, Uri)

public static Message NewFromUri(string method, Uri uri)

Parameters

method string
uri Uri

Returns

Message

NewOptionsPing(Uri)

public static Message NewOptionsPing(Uri baseUri)

Parameters

baseUri Uri

Returns

Message

QueryFlags(MessageFlags)

public bool QueryFlags(MessageFlags flags)

Parameters

flags MessageFlags

Returns

bool

RemoveFlags(MessageFlags)

public void RemoveFlags(MessageFlags flags)

Parameters

flags MessageFlags

SetFirstParty(Uri)

public void SetFirstParty(Uri firstParty)

Parameters

firstParty Uri

SetFlags(MessageFlags)

public void SetFlags(MessageFlags flags)

Parameters

flags MessageFlags

SetForceHttp1(bool)

[Version("3.4")]
public void SetForceHttp1(bool value)

Parameters

value bool

SetIsOptionsPing(bool)

public void SetIsOptionsPing(bool isOptionsPing)

Parameters

isOptionsPing bool

SetIsTopLevelNavigation(bool)

public void SetIsTopLevelNavigation(bool isTopLevelNavigation)

Parameters

isTopLevelNavigation bool

SetMethod(string)

public void SetMethod(string method)

Parameters

method string

SetPriority(MessagePriority)

public void SetPriority(MessagePriority priority)

Parameters

priority MessagePriority

SetRequestBody(string?, InputStream?, long)

public void SetRequestBody(string? contentType, InputStream? stream, long contentLength)

Parameters

contentType string
stream InputStream
contentLength long

SetRequestBodyFromBytes(string?, Bytes?)

public void SetRequestBodyFromBytes(string? contentType, Bytes? bytes)

Parameters

contentType string
bytes Bytes

SetSiteForCookies(Uri?)

public void SetSiteForCookies(Uri? siteForCookies)

Parameters

siteForCookies Uri

SetTlsClientCertificate(TlsCertificate?)

public void SetTlsClientCertificate(TlsCertificate? certificate)

Parameters

certificate TlsCertificate

SetUri(Uri)

public void SetUri(Uri uri)

Parameters

uri Uri

TlsClientCertificatePasswordRequestComplete()

public void TlsClientCertificatePasswordRequestComplete()

Events

OnAcceptCertificate

public event ReturningSignalHandler<Message, Message.AcceptCertificateSignalArgs, bool> OnAcceptCertificate

Event Type

ReturningSignalHandler<Message, Message.AcceptCertificateSignalArgs, bool>

OnAuthenticate

public event ReturningSignalHandler<Message, Message.AuthenticateSignalArgs, bool> OnAuthenticate

Event Type

ReturningSignalHandler<Message, Message.AuthenticateSignalArgs, bool>

OnContentSniffed

public event SignalHandler<Message, Message.ContentSniffedSignalArgs> OnContentSniffed

Event Type

SignalHandler<Message, Message.ContentSniffedSignalArgs>

OnFinished

public event SignalHandler<Message> OnFinished

Event Type

SignalHandler<Message>

OnGotBody

public event SignalHandler<Message> OnGotBody

Event Type

SignalHandler<Message>

OnGotBodyData

public event SignalHandler<Message, Message.GotBodyDataSignalArgs> OnGotBodyData

Event Type

SignalHandler<Message, Message.GotBodyDataSignalArgs>

OnGotHeaders

public event SignalHandler<Message> OnGotHeaders

Event Type

SignalHandler<Message>

OnGotInformational

public event SignalHandler<Message> OnGotInformational

Event Type

SignalHandler<Message>

OnHstsEnforced

public event SignalHandler<Message> OnHstsEnforced

Event Type

SignalHandler<Message>

OnNetworkEvent

public event SignalHandler<Message, Message.NetworkEventSignalArgs> OnNetworkEvent

Event Type

SignalHandler<Message, Message.NetworkEventSignalArgs>

OnRequestCertificate

public event ReturningSignalHandler<Message, Message.RequestCertificateSignalArgs, bool> OnRequestCertificate

Event Type

ReturningSignalHandler<Message, Message.RequestCertificateSignalArgs, bool>

OnRequestCertificatePassword

public event ReturningSignalHandler<Message, Message.RequestCertificatePasswordSignalArgs, bool> OnRequestCertificatePassword

Event Type

ReturningSignalHandler<Message, Message.RequestCertificatePasswordSignalArgs, bool>

OnRestarted

public event SignalHandler<Message> OnRestarted

Event Type

SignalHandler<Message>

OnStarting

public event SignalHandler<Message> OnStarting

Event Type

SignalHandler<Message>

OnWroteBody

public event SignalHandler<Message> OnWroteBody

Event Type

SignalHandler<Message>

OnWroteBodyData

public event SignalHandler<Message, Message.WroteBodyDataSignalArgs> OnWroteBodyData

Event Type

SignalHandler<Message, Message.WroteBodyDataSignalArgs>

OnWroteHeaders

public event SignalHandler<Message> OnWroteHeaders

Event Type

SignalHandler<Message>