WebServer.RequestHeadersDoneDelegate Delegate
wodWebServer.NET Help file

WebServer.RequestHeadersDoneDelegate Delegate

Fires when wodWebServer.NET receives request headers from the user

public delegate void WebServer.RequestHeadersDoneDelegate(
   object Sender,
   WebRequestHeadersDoneArgs Args
);

Parameters

Sender
The source of the event.
Args
Holds arguments for the event.

Remarks

RequestHeaders is fired after connected user sends request headers, but before any body content is sent - if any will be sent at all. This place is convenient for determining if user is about to upload files so you can prepare yourself and setup Request.Stream property to some exact location (otherwise, wodWebServer.NET will save received body to new MemoryStream). If you plan to support PUT methods of HTTP protocol, you might want to use this event to point directly to location where file will be saved.

But this is not it's only purpose. You have full access to Request.Headers at this point - and it tells you quite a bit about body content that is about to arrive.

Requirements

Namespace: WeOnlyDo.Server

Assembly: WeOnlyDo.Server.WebServer (in WeOnlyDo.Server.WebServer.dll)

See Also

WeOnlyDo.Server Namespace