Fauna .NET Driver 0.1.0-beta
 
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Fauna.IConnection Interface Reference

Represents an interface for connections to a Fauna database. More...

Inheritance diagram for Fauna.IConnection:
Fauna.Connection

Public Member Functions

Task< HttpResponseMessage > DoPostAsync (string path, Stream body, Dictionary< string, string > headers, CancellationToken cancel)
 Asynchronously sends a POST request to the specified path with the provided body and headers.
 

Detailed Description

Represents an interface for connections to a Fauna database.

Definition at line 6 of file IConnection.cs.

Member Function Documentation

◆ DoPostAsync()

Task< HttpResponseMessage > Fauna.IConnection.DoPostAsync ( string  path,
Stream  body,
Dictionary< string, string >  headers,
CancellationToken  cancel 
)

Asynchronously sends a POST request to the specified path with the provided body and headers.

Parameters
pathThe path of the resource to send the request to.
bodyThe stream containing the request body.
headersA dictionary of headers to be included in the request.
cancelA cancellation token to use with the request.
Returns
A Task representing the asynchronous operation, which upon completion contains the response from the server as HttpResponseMessage.

Implemented in Fauna.Connection.


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