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

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

Inheritance diagram for Satori.IHttpAdapter:
Satori.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]
 A delegate used to determine whether or not an error from the server is due to a temporary bad state on the server (i.e., is 'transient').
 
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 > Satori.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 Satori.HttpRequestAdapter.

Property Documentation

◆ Logger

ILogger Satori.IHttpAdapter.Logger
getset

The logger to use with the adapter.

Implemented in Satori.HttpRequestAdapter.

◆ TransientExceptionDelegate

TransientExceptionDelegate Satori.IHttpAdapter.TransientExceptionDelegate
get

A delegate used to determine whether or not an error from the server is due to a temporary bad state on the server (i.e., is 'transient').

Implemented in Satori.HttpRequestAdapter.


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