Nakama .NET Client SDK 3.8.0
Nakama .NET Client SDK
Loading...
Searching...
No Matches
Nakama.IHttpAdapter Interface Reference

An adapter which implements the HTTP protocol. More...

Inheritance diagram for Nakama.IHttpAdapter:
Nakama.HttpRequestAdapter

Public Member Functions

Task< string > SendAsync (string method, Uri uri, IDictionary< string, string > headers, byte[] body, int timeoutSec=3, CancellationToken? userCancelToken=null)
 Send a HTTP request.
 

Properties

TransientExceptionDelegate TransientExceptionDelegate [get]
 
ILogger Logger [get, set]
 The logger to use with the adapter.
 

Detailed Description

An adapter which implements the HTTP protocol.

Member Function Documentation

◆ SendAsync()

Task< string > Nakama.IHttpAdapter.SendAsync ( string  method,
Uri  uri,
IDictionary< string, string >  headers,
byte[]  body,
int  timeoutSec = 3,
CancellationToken?  userCancelToken = null 
)

Send a HTTP request.

Parameters
methodHTTP method to use for this request.
uriThe fully qualified URI to use.
headersRequest headers to set.
bodyRequest content body to set.
timeoutSecRequest timeout.
userCancelTokenA user-generated token that can be used to cancel the request.
Returns
A task which resolves to the contents of the response.

Implemented in Nakama.HttpRequestAdapter.

Property Documentation

◆ Logger

ILogger Nakama.IHttpAdapter.Logger
getset

The logger to use with the adapter.

Implemented in Nakama.HttpRequestAdapter.

◆ TransientExceptionDelegate

TransientExceptionDelegate Nakama.IHttpAdapter.TransientExceptionDelegate
get

Implemented in Nakama.HttpRequestAdapter.


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