Class BaseRestClient
Inheritance
System.Object
BaseRestClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Klarna.Rest.Core.dll
Syntax
public abstract class BaseRestClient
Constructors
|
Improve this Doc
View Source
BaseRestClient(ApiSession, IJsonSerializer)
Declaration
protected BaseRestClient(ApiSession apiSession, IJsonSerializer jsonSerializer)
Parameters
Fields
|
Improve this Doc
View Source
ApiSession
Declaration
protected readonly ApiSession ApiSession
Field Value
Methods
|
Improve this Doc
View Source
Delete(String)
Declaration
protected Task Delete(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Get(String)
Declaration
protected Task Get(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Get<T>(String, IDictionary<String, String>)
Declaration
protected Task<T> Get<T>(string url, IDictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Collections.Generic.IDictionary<System.String, System.String> |
headers |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetStream(String)
Declaration
protected Task<Stream> GetStream(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.IO.Stream> |
|
|
Improve this Doc
View Source
Patch(String, Object)
Declaration
protected Task Patch(string url, object data)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Object |
data |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Post(String, Object)
Declaration
protected Task Post(string url, object data = null)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Object |
data |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Post<T>(String, Object)
Declaration
protected Task<T> Post<T>(string url, object data)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Object |
data |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
|
Improve this Doc
View Source
Put<T>(String, Object)
Declaration
protected Task<T> Put<T>(string url, object data)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Object |
data |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters