Table of Contents

Class MessageHeaders

Namespace
Soup
Assembly
Soup-3.0.dll
public sealed class MessageHeaders : BoxedRecord, IEquatable<MessageHeaders>
Inheritance
MessageHeaders
Implements
Inherited Members

Constructors

MessageHeaders(MessageHeadersOwnedHandle)

public MessageHeaders(MessageHeadersOwnedHandle handle)

Parameters

handle MessageHeadersOwnedHandle

Properties

Handle

public MessageHeadersOwnedHandle Handle { get; }

Property Value

MessageHeadersOwnedHandle

Methods

Append(string, string)

public void Append(string name, string value)

Parameters

name string
value string

CleanConnectionHeaders()

public void CleanConnectionHeaders()

Clear()

public void Clear()

Equals(MessageHeaders?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(MessageHeaders? other)

Parameters

other MessageHeaders

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Foreach(MessageHeadersForeachFunc)

public void Foreach(MessageHeadersForeachFunc func)

Parameters

func MessageHeadersForeachFunc

FreeRanges(Range)

public void FreeRanges(Range ranges)

Parameters

ranges Range

GetContentLength()

public long GetContentLength()

Returns

long

GetContentRange(out long, out long, out long)

public bool GetContentRange(out long start, out long end, out long totalLength)

Parameters

start long
end long
totalLength long

Returns

bool

GetEncoding()

public Encoding GetEncoding()

Returns

Encoding

GetExpectations()

public Expectation GetExpectations()

Returns

Expectation

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetHeadersType()

public MessageHeadersType GetHeadersType()

Returns

MessageHeadersType

GetList(string)

public string? GetList(string name)

Parameters

name string

Returns

string

GetOne(string)

public string? GetOne(string name)

Parameters

name string

Returns

string

HeaderContains(string, string)

public bool HeaderContains(string name, string token)

Parameters

name string
token string

Returns

bool

HeaderEquals(string, string)

public bool HeaderEquals(string name, string value)

Parameters

name string
value string

Returns

bool

New(MessageHeadersType)

public static MessageHeaders New(MessageHeadersType type)

Parameters

type MessageHeadersType

Returns

MessageHeaders

Ref()

public MessageHeaders Ref()

Returns

MessageHeaders

Remove(string)

public void Remove(string name)

Parameters

name string

Replace(string, string)

public void Replace(string name, string value)

Parameters

name string
value string

SetContentDisposition(string, HashTable?)

public void SetContentDisposition(string disposition, HashTable? @params)

Parameters

disposition string
params HashTable

SetContentLength(long)

public void SetContentLength(long contentLength)

Parameters

contentLength long

SetContentRange(long, long, long)

public void SetContentRange(long start, long end, long totalLength)

Parameters

start long
end long
totalLength long

SetContentType(string, HashTable?)

public void SetContentType(string contentType, HashTable? @params)

Parameters

contentType string
params HashTable

SetEncoding(Encoding)

public void SetEncoding(Encoding encoding)

Parameters

encoding Encoding

SetExpectations(Expectation)

public void SetExpectations(Expectation expectations)

Parameters

expectations Expectation

SetRange(long, long)

public void SetRange(long start, long end)

Parameters

start long
end long

SetRanges(Range, int)

public void SetRanges(Range ranges, int length)

Parameters

ranges Range
length int

Unref()

public void Unref()