Response that is sent back to the web browser / client. A response can be sent if different ways. The easiest one is to just fill the Body stream with content, everything else will then be taken care of by the framework. The default content-type is text/html, you should change it if you send anything else. The second and slighty more complex way is to send the response as parts. Start with sending the header using the SendHeaders method and then you can send the body using SendBody method, but do not forget to set ContentType and ContentLength before doing so.

Namespace:  HttpServer
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public interface IHttpResponse
Visual Basic (Declaration)
Public Interface IHttpResponse
Visual C++
public interface class IHttpResponse

Examples

public void MyHandler(IHttpRequest request, IHttpResponse response) { }

See Also