Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

OpenTokSDK.Util.HttpClient

For internal use. More...

Public Member Functions

 HttpClient (int apiKey, string apiSecret, string apiUrl="")
virtual string Get (string url)
virtual string Get (string url, Dictionary< string, string > headers)
virtual Task< string > GetAsync (string url, Dictionary< string, string > headers=null)
virtual string Post (string url, Dictionary< string, string > headers, Dictionary< string, object > data)
virtual Task< string > PostAsync (string url, Dictionary< string, string > headers, Dictionary< string, object > data)
virtual string Put (string url, Dictionary< string, string > headers, Dictionary< string, object > data)
virtual async Task< string > PutAsync (string url, Dictionary< string, string > headers, Dictionary< string, object > data)
virtual string Patch (string url, Dictionary< string, string > headers, Dictionary< string, object > data)
virtual Task< string > PatchAsync (string url, Dictionary< string, string > headers, Dictionary< string, object > data)
virtual string Delete (string url, Dictionary< string, string > headers)
virtual Task< string > DeleteAsync (string url, Dictionary< string, string > headers)
string DoRequest (string url, Dictionary< string, string > specificHeaders, Dictionary< string, object > bodyData)
async Task< string > DoRequestAsync (string url, Dictionary< string, string > specificHeaders, Dictionary< string, object > bodyData)
XmlDocument ReadXmlResponse (string xml)

Properties

string CustomUserAgent [get, set]
 The custom user-agent value. The HttpClient will append this value, if it exists, to the initial user-agent value. More...
bool Debug = false [get, set]
 Turns on and off debug logging More...
int? RequestTimeout [get, set]
 Timeout in milliseconds for the HttpWebRequests sent by the client. More...

Detailed Description

For internal use.

Property Documentation

◆ CustomUserAgent

string OpenTokSDK.Util.HttpClient.CustomUserAgent

The custom user-agent value. The HttpClient will append this value, if it exists, to the initial user-agent value.

◆ Debug

bool OpenTokSDK.Util.HttpClient.Debug = false

Turns on and off debug logging

◆ RequestTimeout

int? OpenTokSDK.Util.HttpClient.RequestTimeout

Timeout in milliseconds for the HttpWebRequests sent by the client.