Class ResponseHeader
public class ResponseHeader : Header
- Inheritance
-
ResponseHeader
- Inherited Members
Constructors
ResponseHeader(IEnumerable<HeaderField>)
Building from direct header
public ResponseHeader(IEnumerable<HeaderField> headers)
Parameters
headers
IEnumerable<HeaderField>
ResponseHeader(ReadOnlyMemory<char>, bool, bool)
Building from flat header
public ResponseHeader(ReadOnlyMemory<char> headerContent, bool isSecure, bool parseConnectionInfo)
Parameters
headerContent
ReadOnlyMemory<char>isSecure
boolparseConnectionInfo
bool
Properties
ConnectionCloseRequest
public bool ConnectionCloseRequest { get; }
Property Value
MaxConnection
public int MaxConnection { get; set; }
Property Value
StatusCode
public int StatusCode { get; }
Property Value
TimeoutIdleSeconds
public int TimeoutIdleSeconds { get; set; }
Property Value
Methods
GetHeaderLineLength()
protected override int GetHeaderLineLength()
Returns
HasResponseBody(ReadOnlySpan<char>)
public bool HasResponseBody(ReadOnlySpan<char> method)
Parameters
method
ReadOnlySpan<char>
Returns
WriteHeaderLine(Span<byte>)
protected override int WriteHeaderLine(Span<byte> buffer)