Show / Hide Table of Contents

Class HttpParam

HTTP parameter

Inheritance
Object
HttpParam
PostArtworkMediaImagesParams
PostArtworksParams
Implements
IHttpParam
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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

Implements

IHttpParam
In This Article
Back to top Generated by DocFX