public static Response Of(ResponseStatus statusCode, Headers <ResponseHeader> headers, byte[] entity) => new Response(Version.Http1_1, statusCode, headers, Body.From(entity));
public static Response Of(ResponseStatus statusCode, Headers <ResponseHeader> headers) => new Response(Version.Http1_1, statusCode, headers, Body.Empty);
public static Response Of(Version version, ResponseStatus statusCode, Headers <ResponseHeader> headers) => new Response(version, statusCode, headers, Body.Empty);
// =========================================== // instance // =========================================== public Header?HeaderOf(string name) => Headers.HeaderOf(name);
public Request And(Headers <RequestHeader> headers) => new Request(Method, Uri, Version, headers, Body);
public static Request From(Method method, Uri uri, Version version, Headers <RequestHeader> headers, Body body) => new Request(method, uri, version, headers, body);
public static Headers <ResponseHeader> WithHeaders(ResponseHeader header) => Headers.Of(header);
public static Headers <ResponseHeader> WithHeaders(string name, string value) => Headers.Of(Of(name, value));