Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Server.WebServer
- WeOnlyDo.Server.WebHeader
- WeOnlyDo.Server.WebHeaders
- WeOnlyDo.Server.WebRequest
- WeOnlyDo.Server.WebResponse
- WeOnlyDo.Server.WebSessions
- WeOnlyDo.Server.WebSessionVar
- WeOnlyDo.Server.WebSessionVars
- WeOnlyDo.Server.WebUpload
- WeOnlyDo.Server.WebUploads
- WeOnlyDo.Server.WebUser
- WeOnlyDo.Server.WebUsers
- How to get support?
RequestDoneEvent event
Fires when wodWebServer.NET receives complete request from the user.
Syntax
- C#
- VB.NET
delegate void RequestDoneDelegate(object Sender, WebRequestDoneArgs Args);
The RequestDoneEvent(Args.Request,Args.Response,Args.User) syntax has these parts:
The RequestDoneEvent(Args.Request,Args.Response,Args.User) syntax has these parts:
Args.Request | WebRequest object. Provides reference to request that was made by the client. |
Args.Response | WebResponse object. Response that is being served to client. |
Args.User | WebUser object. Reference to the user who is connected to the server. |
Delegate Sub RequestDoneDelegate(ByVal Sender as Object, ByVal Args As WebRequestDoneArgs)
The RequestDoneEvent(Args.Request,Args.Response,Args.User) syntax has these parts:
The RequestDoneEvent(Args.Request,Args.Response,Args.User) syntax has these parts:
Args.Request | WebRequest object. Provides reference to request that was made by the client. |
Args.Response | WebResponse object. Response that is being served to client. |
Args.User | WebUser object. Reference to the user who is connected to the server. |
Remarks
This is the MOST IMPORTANT event in wodWebServer.NET - this is the place you should put your code to prepare responses on user's requests.When new request arrive to GET or POST information from/to your WEB server, you will catch it in this event. From within this event you should prepare outgoing response - either 'by hand' by setting Response.Headers and filling up Response.Body (or Response.Stream) property, or you can just let wodWebServer.NET do it automatically - by setting WebServer1.DocumentRoot property, and automatic document delivery. It's up to you.
If you don't do anything inside this event and you don't set DocumentRoot property - wodWebServer.NET will not know what kind of content to provide to the user, and most probably users will receive errors as a result.