protected virtual void WriteResponseFor404(ref HttpRequest request, TcpConnectionFormatter response) // Not Found { Log.LogMessage(Log.Level.Warning, "Request {0}, Response: 404 Not Found", request.Path); WriteCommonHeaders(ref response, Http.Version.Http11, 404, "Not Found"); response.AppendEoh(); }
protected virtual void WriteResponseFor400(Span <byte> requestBytes, TcpConnectionFormatter response) // Bad Request { Log.LogMessage(Log.Level.Warning, "Request {0}, Response: 400 Bad Request", requestBytes.Length); WriteCommonHeaders(ref response, Http.Version.Http11, 400, "Bad Request"); response.AppendEoh(); }