public static async Task <string> SetResponse(SocketNetworkStream socketNetworkStream) { var httpRawRequest = await socketNetworkStream.Read(); return(HttpResponse.SetHeader().AppendLine(httpRawRequest.GetHtml()).ToString()); }
public RequestHandler(Socket client) { this.client = client; stream = new SocketNetworkStream(client); }