Skip to content

AddDefaultParameter

Adds a default parameter to all requests made by this client.

myRestClient.AddDefaultParameter(name: string, value: string, type: ( "Cookie" | "GetOrPost" | "UrlSegment" | "HttpHeader" | "RequestBody" | "QueryString" | "QueryStringWithoutEncode" )):RestClient

Parameters

string name
    The name of the parameter.

string value
    The value of the parameter.

( "Cookie" | "GetOrPost" | "UrlSegment" | "HttpHeader" | "RequestBody" | "QueryString" | "QueryStringWithoutEncode" ) type
    The type of the parameter.

Returns

The current RestClient instance.

See Also