Click or drag to resize

HttpRequestEventArgs Class

Represents the event data for the HTTP request events of the HttpServer.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    Sfs2X.WebSocketSharp.ServerHttpRequestEventArgs

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public class HttpRequestEventArgs : EventArgs

The HttpRequestEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyRequest
Gets the request data sent from a client.
Public propertyResponse
Gets the response data to return to the client.
Public propertyUser
Gets the information for the client.
Top
Methods
  NameDescription
Public methodReadFile
Reads the specified file from the document folder of the HttpServer.
Public methodTryReadFile
Tries to read the specified file from the document folder of the HttpServer.
Top
Remarks

An HTTP request event occurs when the HttpServer receives an HTTP request.

You should access the Request property if you would like to get the request data sent from a client.

And you should access the Response property if you would like to get the response data to return to the client.

See Also