Table of Contents

Class Message

Namespace
Soup.Internal
Assembly
Soup-3.0.dll
public class Message
Inheritance
Message
Inherited Members

Methods

AddFlags(IntPtr, MessageFlags)

Calls native method soup_message_add_flags.

public static extern void AddFlags(IntPtr msg, MessageFlags flags)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

flags MessageFlags

Transfer ownership: None Nullable: False

AddHeaderHandler(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, Callback, IntPtr)

Calls native method soup_message_add_header_handler.

public static extern uint AddHeaderHandler(IntPtr msg, NonNullableUtf8StringHandle signal, NonNullableUtf8StringHandle header, Callback callback, IntPtr userData)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

signal NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

header NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

callback Callback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Returns

uint

Transfer ownership: None Nullable: False

AddStatusCodeHandler(IntPtr, NonNullableUtf8StringHandle, uint, Callback, IntPtr)

Calls native method soup_message_add_status_code_handler.

public static extern uint AddStatusCodeHandler(IntPtr msg, NonNullableUtf8StringHandle signal, uint statusCode, Callback callback, IntPtr userData)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

signal NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

statusCode uint

Transfer ownership: None Nullable: False

callback Callback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Returns

uint

Transfer ownership: None Nullable: False

DisableFeature(IntPtr, Type)

Calls native method soup_message_disable_feature.

public static extern void DisableFeature(IntPtr msg, Type featureType)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

featureType Type

Transfer ownership: None Nullable: False

GetConnectionId(IntPtr)

Calls native method soup_message_get_connection_id.

public static extern ulong GetConnectionId(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetFirstParty(IntPtr)

Calls native method soup_message_get_first_party.

public static extern UriUnownedHandle GetFirstParty(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

UriUnownedHandle

Transfer ownership: None Nullable: False

GetFlags(IntPtr)

Calls native method soup_message_get_flags.

public static extern MessageFlags GetFlags(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

MessageFlags

Transfer ownership: None Nullable: False

GetForceHttp1(IntPtr)

Calls native method soup_message_get_force_http1. Version: 3.4

[Version("3.4")]
public static extern bool GetForceHttp1(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetGType()

Calls native function soup_message_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetHttpVersion(IntPtr)

Calls native method soup_message_get_http_version.

public static extern HTTPVersion GetHttpVersion(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

HTTPVersion

Transfer ownership: None Nullable: False

GetIsOptionsPing(IntPtr)

Calls native method soup_message_get_is_options_ping.

public static extern bool GetIsOptionsPing(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetIsTopLevelNavigation(IntPtr)

Calls native method soup_message_get_is_top_level_navigation.

public static extern bool GetIsTopLevelNavigation(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetMethod(IntPtr)

Calls native method soup_message_get_method.

public static extern NonNullableUtf8StringUnownedHandle GetMethod(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetMetrics(IntPtr)

Calls native method soup_message_get_metrics.

public static extern MessageMetricsUnownedHandle GetMetrics(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

MessageMetricsUnownedHandle

Transfer ownership: None Nullable: True

GetPriority(IntPtr)

Calls native method soup_message_get_priority.

public static extern MessagePriority GetPriority(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

MessagePriority

Transfer ownership: None Nullable: False

GetReasonPhrase(IntPtr)

Calls native method soup_message_get_reason_phrase.

public static extern NullableUtf8StringUnownedHandle GetReasonPhrase(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetRemoteAddress(IntPtr)

Calls native method soup_message_get_remote_address.

public static extern IntPtr GetRemoteAddress(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetRequestHeaders(IntPtr)

Calls native method soup_message_get_request_headers.

public static extern MessageHeadersUnownedHandle GetRequestHeaders(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

MessageHeadersUnownedHandle

Transfer ownership: None Nullable: False

GetResponseHeaders(IntPtr)

Calls native method soup_message_get_response_headers.

public static extern MessageHeadersUnownedHandle GetResponseHeaders(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

MessageHeadersUnownedHandle

Transfer ownership: None Nullable: False

GetSiteForCookies(IntPtr)

Calls native method soup_message_get_site_for_cookies.

public static extern UriUnownedHandle GetSiteForCookies(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

UriUnownedHandle

Transfer ownership: None Nullable: False

GetStatus(IntPtr)

Calls native method soup_message_get_status.

public static extern Status GetStatus(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

Status

Transfer ownership: None Nullable: False

GetTlsCiphersuiteName(IntPtr)

Calls native method soup_message_get_tls_ciphersuite_name.

public static extern NonNullableUtf8StringUnownedHandle GetTlsCiphersuiteName(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetTlsPeerCertificate(IntPtr)

Calls native method soup_message_get_tls_peer_certificate.

public static extern IntPtr GetTlsPeerCertificate(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetTlsPeerCertificateErrors(IntPtr)

Calls native method soup_message_get_tls_peer_certificate_errors.

public static extern TlsCertificateFlags GetTlsPeerCertificateErrors(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

TlsCertificateFlags

Transfer ownership: None Nullable: False

GetTlsProtocolVersion(IntPtr)

Calls native method soup_message_get_tls_protocol_version.

public static extern TlsProtocolVersion GetTlsProtocolVersion(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

TlsProtocolVersion

Transfer ownership: None Nullable: False

GetUri(IntPtr)

Calls native method soup_message_get_uri.

public static extern UriUnownedHandle GetUri(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

UriUnownedHandle

Transfer ownership: None Nullable: False

IsFeatureDisabled(IntPtr, Type)

Calls native method soup_message_is_feature_disabled.

public static extern bool IsFeatureDisabled(IntPtr msg, Type featureType)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

featureType Type

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsKeepalive(IntPtr)

Calls native method soup_message_is_keepalive.

public static extern bool IsKeepalive(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

New(NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native constructor soup_message_new.

public static extern IntPtr New(NonNullableUtf8StringHandle method, NonNullableUtf8StringHandle uriString)

Parameters

method NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

uriString NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromEncodedForm(NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native constructor soup_message_new_from_encoded_form.

public static extern IntPtr NewFromEncodedForm(NonNullableUtf8StringHandle method, NonNullableUtf8StringHandle uriString, NonNullableUtf8StringHandle encodedForm)

Parameters

method NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

uriString NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

encodedForm NonNullableUtf8StringHandle

Transfer ownership: Full Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromMultipart(NonNullableUtf8StringHandle, MultipartHandle)

Calls native constructor soup_message_new_from_multipart.

public static extern IntPtr NewFromMultipart(NonNullableUtf8StringHandle uriString, MultipartHandle multipart)

Parameters

uriString NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

multipart MultipartHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromUri(NonNullableUtf8StringHandle, UriHandle)

Calls native constructor soup_message_new_from_uri.

public static extern IntPtr NewFromUri(NonNullableUtf8StringHandle method, UriHandle uri)

Parameters

method NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

uri UriHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewOptionsPing(UriHandle)

Calls native constructor soup_message_new_options_ping.

public static extern IntPtr NewOptionsPing(UriHandle baseUri)

Parameters

baseUri UriHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

QueryFlags(IntPtr, MessageFlags)

Calls native method soup_message_query_flags.

public static extern bool QueryFlags(IntPtr msg, MessageFlags flags)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

flags MessageFlags

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

RemoveFlags(IntPtr, MessageFlags)

Calls native method soup_message_remove_flags.

public static extern void RemoveFlags(IntPtr msg, MessageFlags flags)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

flags MessageFlags

Transfer ownership: None Nullable: False

SetFirstParty(IntPtr, UriHandle)

Calls native method soup_message_set_first_party.

public static extern void SetFirstParty(IntPtr msg, UriHandle firstParty)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

firstParty UriHandle

Transfer ownership: None Nullable: False

SetFlags(IntPtr, MessageFlags)

Calls native method soup_message_set_flags.

public static extern void SetFlags(IntPtr msg, MessageFlags flags)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

flags MessageFlags

Transfer ownership: None Nullable: False

SetForceHttp1(IntPtr, bool)

Calls native method soup_message_set_force_http1. Version: 3.4

[Version("3.4")]
public static extern void SetForceHttp1(IntPtr msg, bool value)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

value bool

Transfer ownership: None Nullable: False

SetIsOptionsPing(IntPtr, bool)

Calls native method soup_message_set_is_options_ping.

public static extern void SetIsOptionsPing(IntPtr msg, bool isOptionsPing)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

isOptionsPing bool

Transfer ownership: None Nullable: False

SetIsTopLevelNavigation(IntPtr, bool)

Calls native method soup_message_set_is_top_level_navigation.

public static extern void SetIsTopLevelNavigation(IntPtr msg, bool isTopLevelNavigation)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

isTopLevelNavigation bool

Transfer ownership: None Nullable: False

SetMethod(IntPtr, NonNullableUtf8StringHandle)

Calls native method soup_message_set_method.

public static extern void SetMethod(IntPtr msg, NonNullableUtf8StringHandle method)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

method NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetPriority(IntPtr, MessagePriority)

Calls native method soup_message_set_priority.

public static extern void SetPriority(IntPtr msg, MessagePriority priority)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

priority MessagePriority

Transfer ownership: None Nullable: False

SetRequestBody(IntPtr, NullableUtf8StringHandle, IntPtr, long)

Calls native method soup_message_set_request_body.

public static extern void SetRequestBody(IntPtr msg, NullableUtf8StringHandle contentType, IntPtr stream, long contentLength)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

contentType NullableUtf8StringHandle

Transfer ownership: None Nullable: True

stream IntPtr

Transfer ownership: None Nullable: True

contentLength long

Transfer ownership: None Nullable: False

SetRequestBodyFromBytes(IntPtr, NullableUtf8StringHandle, BytesHandle)

Calls native method soup_message_set_request_body_from_bytes.

public static extern void SetRequestBodyFromBytes(IntPtr msg, NullableUtf8StringHandle contentType, BytesHandle bytes)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

contentType NullableUtf8StringHandle

Transfer ownership: None Nullable: True

bytes BytesHandle

Transfer ownership: None Nullable: True

SetSiteForCookies(IntPtr, UriHandle)

Calls native method soup_message_set_site_for_cookies.

public static extern void SetSiteForCookies(IntPtr msg, UriHandle siteForCookies)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

siteForCookies UriHandle

Transfer ownership: None Nullable: True

SetTlsClientCertificate(IntPtr, IntPtr)

Calls native method soup_message_set_tls_client_certificate.

public static extern void SetTlsClientCertificate(IntPtr msg, IntPtr certificate)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

certificate IntPtr

Transfer ownership: None Nullable: True

SetUri(IntPtr, UriHandle)

Calls native method soup_message_set_uri.

public static extern void SetUri(IntPtr msg, UriHandle uri)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False

uri UriHandle

Transfer ownership: None Nullable: False

TlsClientCertificatePasswordRequestComplete(IntPtr)

Calls native method soup_message_tls_client_certificate_password_request_complete.

public static extern void TlsClientCertificatePasswordRequestComplete(IntPtr msg)

Parameters

msg IntPtr

Transfer ownership: None Nullable: False