ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.ProtonNetServer.IHttpSession Interface Reference

Represents an interface for an HTTP session, inheriting from the ISession interface. More...

Inheritance diagram for XmobiTea.ProtonNetServer.IHttpSession:
XmobiTea.ProtonNetServer.ISession XmobiTea.ProtonNetServer.HttpSession XmobiTea.ProtonNetServer.HttpsSession XmobiTea.ProtonNet.Server.WebApi.Sessions.WebApiHttpSession XmobiTea.ProtonNetServer.WsSession XmobiTea.ProtonNet.Server.WebApi.Sessions.WebApiHttpsSession XmobiTea.ProtonNetServer.WssSession XmobiTea.ProtonNet.Server.Socket.Sessions.SocketWsSession XmobiTea.ProtonNet.Server.Socket.Sessions.SocketWssSession

Public Member Functions

int SendResponse (HttpResponse response)
 Sends an HTTP response synchronously.
 
bool SendResponseAsync (HttpResponse response)
 Sends an HTTP response asynchronously.
 
- Public Member Functions inherited from XmobiTea.ProtonNetServer.ISession
bool Disconnect ()
 Disconnects the session.
 
int Send (byte[] buffer)
 Sends data synchronously to the connected client.
 
int Send (byte[] buffer, int position, int length)
 Sends data synchronously to the connected client with a specified position and length.
 
bool SendAsync (byte[] buffer)
 Sends data asynchronously to the connected client.
 
bool SendAsync (byte[] buffer, int position, int length)
 Sends data asynchronously to the connected client with a specified position and length.
 
INetworkStatistics GetNetworkStatistics ()
 Gets the network statistics for the session.
 

Detailed Description

Represents an interface for an HTTP session, inheriting from the ISession interface.

Member Function Documentation

◆ SendResponse()

int XmobiTea.ProtonNetServer.IHttpSession.SendResponse ( HttpResponse response)

Sends an HTTP response synchronously.

Parameters
responseThe HTTP response to send.
Returns
The number of bytes sent.

Implemented in XmobiTea.ProtonNetServer.HttpSession, and XmobiTea.ProtonNetServer.HttpsSession.

◆ SendResponseAsync()

bool XmobiTea.ProtonNetServer.IHttpSession.SendResponseAsync ( HttpResponse response)

Sends an HTTP response asynchronously.

Parameters
responseThe HTTP response to send.
Returns
True if the response was sent successfully; otherwise, false.

Implemented in XmobiTea.ProtonNetServer.HttpSession, and XmobiTea.ProtonNetServer.HttpsSession.


The documentation for this interface was generated from the following file: