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

Defines the interface for an HTTP client that can send requests and handle responses over a network. Inherits from IClient. More...

Inheritance diagram for XmobiTea.ProtonNetClient.IHttpClient:
XmobiTea.ProtonNetClient.IClient XmobiTea.ProtonNetClient.HttpClient XmobiTea.ProtonNetClient.HttpsClient XmobiTea.ProtonNetClient.WsClient XmobiTea.ProtonNetClient.WssClient XmobiTea.ProtonNet.Client.Socket.Clients.SocketWsClient XmobiTea.ProtonNet.Client.Socket.Clients.SocketWssClient

Public Member Functions

int SendRequest (HttpRequest request)
 Sends an HTTP request synchronously.
 
bool SendRequestAsync (HttpRequest request)
 Sends an HTTP request asynchronously.
 
- Public Member Functions inherited from XmobiTea.ProtonNetClient.IClient
bool Connect ()
 Connects the client to the server.
 
bool Reconnect ()
 Reconnects the client to the server.
 
bool Disconnect ()
 Disconnects the client from the server.
 
bool ConnectAsync ()
 Asynchronously connects the client to the server.
 
bool ReconnectAsync ()
 Asynchronously reconnects the client to the server.
 
bool DisconnectAsync ()
 Asynchronously disconnects the client from the server.
 
INetworkStatistics GetNetworkStatistics ()
 Retrieves the network statistics associated with the client.
 
int Send (byte[] buffer)
 Sends data to the server.
 
int Send (byte[] buffer, int position, int length)
 Sends data to the server starting from a specific position in the buffer.
 
bool SendAsync (byte[] buffer)
 Asynchronously sends data to the server.
 
bool SendAsync (byte[] buffer, int position, int length)
 Asynchronously sends data to the server starting from a specific position in the buffer.
 

Detailed Description

Defines the interface for an HTTP client that can send requests and handle responses over a network. Inherits from IClient.

Member Function Documentation

◆ SendRequest()

int XmobiTea.ProtonNetClient.IHttpClient.SendRequest ( HttpRequest request)

Sends an HTTP request synchronously.

Parameters
requestThe HTTP request to be sent.
Returns
The number of bytes sent.

Implemented in XmobiTea.ProtonNetClient.HttpClient, and XmobiTea.ProtonNetClient.HttpsClient.

◆ SendRequestAsync()

bool XmobiTea.ProtonNetClient.IHttpClient.SendRequestAsync ( HttpRequest request)

Sends an HTTP request asynchronously.

Parameters
requestThe HTTP request to be sent.
Returns
True if the request was sent successfully; otherwise, false.

Implemented in XmobiTea.ProtonNetClient.HttpClient, and XmobiTea.ProtonNetClient.HttpsClient.


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