src/Foundation/Net/Gimela.Net.Http/Messages/ResponseWriter.cs
/// <summary>
/// Sends response using the specified context.
/// </summary>
/// <param name="context">The context.</param>
/// <param name="response">The response.</param>
Sends response using the specified context.
Sends response using the specified context .
public void Send(IHttpContext context, IResponse response)
    {
      SendHeaders(context, response);
      SendBody(context, response.Body);
      try
      {
        context.Stream.Flush();
      }
      catch (Exception err)
      {
        Logger.Error("Failed to flush context stream.");
        ExceptionHandler.Handle(err);
      }
    }
public void Send ( IHttpContext context , IResponse response ) { SendHeaders ( context , response ) ; SendBody ( context , response . Body ) ; try { context . Stream . Flush ( ) ; } catch ( Exception err ) { Logger . Error ( " " ) ; ExceptionHandler . Handle ( err ) ; } }
Sends response using the specified context.
Sends response using the specified context .
context
IHttpContext
None
response
IResponse
None