Nakama .NET 3.1.1
.NET client for Nakama server written in C
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. More...
 

Properties

ILogger Logger [getset]
 The logger to use with the adapter. More...
 

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.


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