Table of Contents

Class ContentSniffer

Namespace
Soup
Assembly
Soup-3.0.dll
public sealed class ContentSniffer : Object, SessionFeature, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
ContentSniffer
Implements
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

ContentSniffer(CreationData)

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

Parameters

data CreationData

ContentSniffer(ContentSnifferHandle)

protected ContentSniffer(ContentSnifferHandle handle)

Parameters

handle ContentSnifferHandle

Methods

GetGType()

public static Type GetGType()

Returns

Type

New()

public static ContentSniffer New()

Returns

ContentSniffer

NewFromPointer(nint, bool)

Creates a new managed ContentSniffer instance for a given pointer.

public static ContentSniffer NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ContentSniffer

NewWithProperties(ConstructArgument[])

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

public static ContentSniffer NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ContentSniffer

Sniff(Message, Bytes, out HashTable?)

public string Sniff(Message msg, Bytes buffer, out HashTable? @params)

Parameters

msg Message
buffer Bytes
params HashTable

Returns

string