HttpServer Namespace

HttpServer.dll

[Missing <summary> documentation for N:HttpServer]

Classes

  ClassDescription
ConsoleLogWriter
This class writes to the console. It colors the output depending on the logprio and includes a 3-level stacktrace (in debug mode)
ContentType
Lists content type mime types.
ContentTypes
A list of content types
HttpClientContext
Contains a connection to a browser/client.
HttpFile
Container class for posted files
HttpForm
Container for posted form data
HttpHelper
Generic helper functions for Http
HttpInput
Contains some kind of input from the browser/client. can be QueryString, form data or any other request body content.
HttpInputItem
represents a http input item. Each item can have multiple sub items, a sub item is made in a html form by using square brackets
HttpListener
HTTP Listener waits for HTTP connections and provide us with HttpListenerContexts using the RequestHandler delegate.
HttpParam
Returns item either from a form or a query string (checks them in that order)
HttpRequest
Contains serverside http request information.
HttpRequestParser
Parses a HTTP request directly from a stream
HttpResponse
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.
HttpServer
A complete http server, you need to add a module to it to be able to handle incoming requests.
Method
Contains all HTTP Methods (according to the HTTP 1.1 specification)

See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

Methods Obsolete.
Contains all HTTP Methods (according to the HTTP 1.1 specification)

See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

RequestCookie
cookie sent by the client/browser
RequestCookies
This class is created as a wrapper, since there are two different cookie types in .Net (Cookie and HttpCookie). The framework might switch class in the future and we dont want to have to replace all instances
ResponseCookie
cookie being sent back to the browser.
ResponseCookies
Cookies that should be set.

Interfaces

  InterfaceDescription
HttpInputBase
Base class for request data containers
HttpSession
Interface for sessions

Delegates

  DelegateDescription
ClientDisconnectedHandler
Client have been disconnected.
ExceptionHandler
We dont want to let the server to die due to exceptions thrown in worker threads. therefore we use this delegate to give you a change to handle uncaught exceptions.
HttpRequestParser..::.RequestCompletedHandler
Invoked when a request have been completed.
RealmHandler
Delegate used to find a realm/domain.
RequestReceivedHandler
Invoked when a client context have received a new HTTP request
WriteLogHandler
A delegate that helps us keep track of errors in the system.

Enumerations

  EnumerationDescription
ConnectionType
Type of HTTP connection
HttpRequestParser..::.State
Current state in the parsing.
LogPrio
Priority for log entries