Represents an HTTPS session, inheriting from the SslSession class.
More...
|
override void | OnReceived (byte[] buffer, int position, int length) |
| Handles the data received from the client.
|
|
override void | OnDisconnected () |
| Handles the session disconnection.
|
|
virtual void | OnReceivedRequestHeader (HttpRequest request) |
| Called when the request header is received.
|
|
virtual void | OnReceivedRequest (HttpRequest request) |
| Called when the full request is received.
|
|
virtual void | OnReceivedRequestError (HttpRequest request, string error) |
| Called when an error occurs while processing the request.
|
|
virtual void | OnConnecting () |
| Event triggered when the session is connecting.
|
|
virtual void | OnConnected () |
| Event triggered when the session is connected.
|
|
virtual void | OnHandshaking () |
| Event triggered when the SSL handshake process begins.
|
|
virtual void | OnHandshaked () |
| Event triggered when the SSL handshake process is completed.
|
|
virtual void | OnDisconnecting () |
| Event triggered when the session is disconnecting.
|
|
virtual void | OnSent (int sent, int pending) |
| Event triggered when data is sent to the client.
|
|
virtual void | OnEmpty () |
| Event triggered when the send buffer is empty.
|
|
virtual void | OnError (SocketError error) |
| Event triggered when an error occurs in the session.
|
|
virtual void | Dispose (bool disposingManagedResources) |
| Releases unmanaged and, optionally, managed resources.
|
|
|
HttpRequest | Request [get] |
| Gets the current HTTP request being processed.
|
|
HttpResponse | Response [get] |
| Gets the current HTTP response being processed.
|
|
bool | IsHandshaked [get] |
| Gets a value indicating whether the session has completed the SSL handshake.
|
|
string | Id [get] |
| Gets the unique identifier for this session.
|
|
SslServer | Server [get] |
| Gets the associated server instance for this session.
|
|
Socket | Socket [get] |
| Gets the underlying socket for the session.
|
|
bool | IsConnected [get] |
| Gets a value indicating whether the session is currently connected.
|
|
bool | IsDisposed [get] |
| Indicates whether this session has been disposed. This flag helps ensure that resources are not accessed after disposal.
|
|
bool | IsSocketDisposed [get] |
| Indicates whether the underlying socket has been disposed. This flag is important for preventing operations on a closed socket.
|
|
TcpServerOptions | Options [get] |
| Contains various configuration options for the TCP server. This includes settings like buffer sizes, keep-alive time, and more.
|
|
Represents an HTTPS session, inheriting from the SslSession class.
◆ HttpsSession()
XmobiTea.ProtonNetServer.HttpsSession.HttpsSession |
( |
HttpsServer | server | ) |
|
Initializes a new instance of the HttpsSession class.
- Parameters
-
server | The HTTPS server that manages this session. |
◆ OnDisconnected()
override void XmobiTea.ProtonNetServer.HttpsSession.OnDisconnected |
( |
| ) |
|
|
protectedvirtual |
◆ OnReceived()
override void XmobiTea.ProtonNetServer.HttpsSession.OnReceived |
( |
byte[] | buffer, |
|
|
int | position, |
|
|
int | length ) |
|
protectedvirtual |
◆ OnReceivedRequest()
virtual void XmobiTea.ProtonNetServer.HttpsSession.OnReceivedRequest |
( |
HttpRequest | request | ) |
|
|
protectedvirtual |
◆ OnReceivedRequestError()
virtual void XmobiTea.ProtonNetServer.HttpsSession.OnReceivedRequestError |
( |
HttpRequest | request, |
|
|
string | error ) |
|
protectedvirtual |
◆ OnReceivedRequestHeader()
virtual void XmobiTea.ProtonNetServer.HttpsSession.OnReceivedRequestHeader |
( |
HttpRequest | request | ) |
|
|
protectedvirtual |
◆ SendResponse()
virtual int XmobiTea.ProtonNetServer.HttpsSession.SendResponse |
( |
HttpResponse | response | ) |
|
|
virtual |
◆ SendResponseAsync()
virtual bool XmobiTea.ProtonNetServer.HttpsSession.SendResponseAsync |
( |
HttpResponse | response | ) |
|
|
virtual |
Sends an HTTP response asynchronously.
- Parameters
-
response | The HTTP response to send. |
- Returns
- True if the response was sent successfully; otherwise, false.
Implements XmobiTea.ProtonNetServer.IHttpSession.
The documentation for this class was generated from the following file:
- XmobiTea.ProtonNetServer/IHttpSession.cs