Пример #1
0
 public static Response Of(Version version, ResponseStatus statusCode, Headers <ResponseHeader> headers, byte[] entity)
 => new Response(version, statusCode, headers, Body.From(entity));
Пример #2
0
 public static Response Of(Version version, ResponseStatus statusCode, byte[] entity)
 => new Response(version, statusCode, Http.Headers.Empty <ResponseHeader>(), Body.From(entity));
Пример #3
0
 public static Response Of(Version version, ResponseStatus statusCode, Headers <ResponseHeader> headers)
 => new Response(version, statusCode, headers, Body.Empty);
Пример #4
0
 public static Response Of(Version version, ResponseStatus statusCode)
 => new Response(version, statusCode, Http.Headers.Empty <ResponseHeader>(), Body.Empty);