public static async Task <TCPRequest> Parse(TCPStream input, bool includeHeaders) { var r = new TCPRequest(); await r.ParseCore(input, includeHeaders).ConfigureAwait(false); return(r); }
public TCPContext(TCPRequest request, IFeatureCollection features, ConnectionInfo connectionInfo) { request.SetHttpContext(this); _Features = features; _Request = request; _Response = new TCPResponse(this); _Response.Body = new MemoryStream(); RequestAborted = cts.Token; RequestServices = features.Get <IServiceProvidersFeature>().RequestServices; _Connection = connectionInfo; }