Class HttpRequest.Builder
Inheritance
HttpRequest.Builder
Assembly: MetaClient.dll
public sealed class Builder
Constructors
Declaration
Methods
Declaration
public HttpRequest.Builder AddHeader(string name, string value)
Parameters
Returns
Declaration
public HttpRequest.Builder AddHeaders(IEnumerable<KeyValuePair<string, string>> headers)
Parameters
Returns
Declaration
public HttpRequest Build()
Returns
Declaration
public HttpRequest.Builder Delete()
Returns
Declaration
public HttpRequest.Builder Get()
Returns
Declaration
public HttpRequest.Builder Negotiate(bool negotiate)
Parameters
Type |
Name |
Description |
Boolean |
negotiate |
|
Returns
Post(String)
Declaration
public HttpRequest.Builder Post([CanBeNull] string body = null)
Parameters
Type |
Name |
Description |
String |
body |
If provided, must be UTF-8 JSON.
|
Returns
Declaration
public HttpRequest.Builder Put([CanBeNull] string body = null)
Parameters
Type |
Name |
Description |
String |
body |
If provided, must be UTF-8 JSON.
|
Returns
Declaration
public HttpRequest.Builder RemoveHeader(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Declaration
public HttpRequest.Builder Url(Url url)
Parameters
Type |
Name |
Description |
Url |
url |
|
Returns