Class HttpParam
HTTP parameter
Implements
Inherited Members
Namespace: Pixiv.VroidSdk.Networking
Assembly: Pixiv.VroidSdk.dll
Syntax
public class HttpParam : IHttpParam
Constructors
HttpParam()
Constructor
Declaration
public HttpParam()
Properties
HasBinaryFile
Does parameter contain binary file
Declaration
public bool HasBinaryFile { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
AddField(String, Byte[])
Add request parameter
Declaration
public void AddField(string key, byte[] value)
Parameters
Type | Name | Description |
---|---|---|
String | key | HTTP parameter key to be added |
Byte[] | value | Value (binary) |
AddField(String, String)
Add request parameter
Declaration
public void AddField(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
String | key | HTTP parameter key to be added |
String | value | Value (string) |
ClearFields()
Clear added HTTP parameter
Declaration
public void ClearFields()
GetBinaryFields()
Return binary value from HTTP parameter
Declaration
public virtual IList<KeyValuePair<string, byte[]>> GetBinaryFields()
Returns
Type | Description |
---|---|
IList<KeyValuePair<String, Byte[]>> | HTTP parameter list |
GetTextFields()
Return text value item from HTTP parameter
Declaration
public virtual IList<KeyValuePair<string, string>> GetTextFields()
Returns
Type | Description |
---|---|
IList<KeyValuePair<String, String>> | HTTP parameter list |
ToQuery()
Create HTTP query string
Declaration
public string ToQuery()
Returns
Type | Description |
---|---|
String | HTTP query string |