Skip to content

AddDefaultParameter

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

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

Parameters

string name
    The name of the parameter.

any value
    The value of the parameter.

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

Returns

The current RestClient instance.

See Also