Class SpacesHttp
proxsee / chatman / janus 呼び出しで共有する HTTP クライアント。
public sealed class SpacesHttp : IDisposable
- Inheritance
-
SpacesHttp
- Implements
- Inherited Members
Constructors
SpacesHttp(TimeSpan?)
public SpacesHttp(TimeSpan? timeout = null)
Parameters
timeoutTimeSpan?
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetAsync(string, Dictionary<string, string>?, Dictionary<string, string>?, TimeSpan?)
public Task<JsonObject> GetAsync(string url, Dictionary<string, string>? headers = null, Dictionary<string, string>? parameters = null, TimeSpan? timeout = null)
Parameters
urlstringheadersDictionary<string, string>parametersDictionary<string, string>timeoutTimeSpan?
Returns
PostAsync(string, JsonObject?, Dictionary<string, string>?, Dictionary<string, string>?, TimeSpan?)
public Task<JsonObject> PostAsync(string url, JsonObject? json = null, Dictionary<string, string>? headers = null, Dictionary<string, string>? parameters = null, TimeSpan? timeout = null)
Parameters
urlstringjsonJsonObjectheadersDictionary<string, string>parametersDictionary<string, string>timeoutTimeSpan?