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
Methods
Append(string, string)
public void Append(string name, string value)
Parameters
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
MessageHeadersAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Foreach(MessageHeadersForeachFunc)
public void Foreach(MessageHeadersForeachFunc func)
Parameters
FreeRanges(Range)
public void FreeRanges(Range ranges)
Parameters
ranges
Range
GetContentLength()
public long GetContentLength()
Returns
GetContentRange(out long, out long, out long)
public bool GetContentRange(out long start, out long end, out long totalLength)
Parameters
Returns
GetEncoding()
public Encoding GetEncoding()
Returns
GetExpectations()
public Expectation GetExpectations()
Returns
GetGType()
public static Type GetGType()
Returns
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
GetList(string)
public string? GetList(string name)
Parameters
name
string
Returns
GetOne(string)
public string? GetOne(string name)
Parameters
name
string
Returns
HeaderContains(string, string)
public bool HeaderContains(string name, string token)
Parameters
Returns
HeaderEquals(string, string)
public bool HeaderEquals(string name, string value)
Parameters
Returns
New(MessageHeadersType)
public static MessageHeaders New(MessageHeadersType type)
Parameters
type
MessageHeadersType
Returns
Ref()
public MessageHeaders Ref()
Returns
Remove(string)
public void Remove(string name)
Parameters
name
string
Replace(string, string)
public void Replace(string name, string value)
Parameters
SetContentDisposition(string, HashTable?)
public void SetContentDisposition(string disposition, HashTable? @params)
Parameters
SetContentLength(long)
public void SetContentLength(long contentLength)
Parameters
contentLength
long
SetContentRange(long, long, long)
public void SetContentRange(long start, long end, long totalLength)
Parameters
SetContentType(string, HashTable?)
public void SetContentType(string contentType, HashTable? @params)
Parameters
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
SetRanges(Range, int)
public void SetRanges(Range ranges, int length)
Parameters
Unref()
public void Unref()