Class RequestHeaderInfo
- Namespace
- Fluxzy
- Assembly
- Fluxzy.Core.dll
This data structure is used for serialization only
[MessagePackObject(false)]
public class RequestHeaderInfo
- Inheritance
-
RequestHeaderInfo
- Inherited Members
Constructors
RequestHeaderInfo(RequestHeader, bool)
public RequestHeaderInfo(RequestHeader originalHeader, bool doNotForwardConnectionHeader = false)
Parameters
originalHeader
RequestHeaderdoNotForwardConnectionHeader
bool
RequestHeaderInfo(ReadOnlyMemory<char>, ReadOnlyMemory<char>, ReadOnlyMemory<char>, ReadOnlyMemory<char>, IEnumerable<HeaderFieldInfo>)
[JsonConstructor]
[SerializationConstructor]
public RequestHeaderInfo(ReadOnlyMemory<char> method, ReadOnlyMemory<char> scheme, ReadOnlyMemory<char> path, ReadOnlyMemory<char> authority, IEnumerable<HeaderFieldInfo> headers)
Parameters
method
ReadOnlyMemory<char>scheme
ReadOnlyMemory<char>path
ReadOnlyMemory<char>authority
ReadOnlyMemory<char>headers
IEnumerable<HeaderFieldInfo>
RequestHeaderInfo(string, string, IEnumerable<HeaderFieldInfo>)
public RequestHeaderInfo(string method, string fullUrl, IEnumerable<HeaderFieldInfo> headers)
Parameters
method
stringfullUrl
stringheaders
IEnumerable<HeaderFieldInfo>
RequestHeaderInfo(string, string, string, string, IEnumerable<HeaderFieldInfo>)
public RequestHeaderInfo(string method, string scheme, string path, string authority, IEnumerable<HeaderFieldInfo> headers)
Parameters
method
stringscheme
stringpath
stringauthority
stringheaders
IEnumerable<HeaderFieldInfo>
Properties
Authority
[Key(3)]
public ReadOnlyMemory<char> Authority { get; }
Property Value
Headers
[Key(4)]
public IEnumerable<HeaderFieldInfo> Headers { get; }
Property Value
Method
[Key(0)]
public ReadOnlyMemory<char> Method { get; }
Property Value
Path
[Key(2)]
public ReadOnlyMemory<char> Path { get; }
Property Value
Scheme
[Key(1)]
public ReadOnlyMemory<char> Scheme { get; }
Property Value
Methods
Equals(RequestHeaderInfo)
protected bool Equals(RequestHeaderInfo other)
Parameters
other
RequestHeaderInfo
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
GetFullUrl()
public string GetFullUrl()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetPathOnly()
public string GetPathOnly()