addParameter

Adds a Request.Parameter to the request. For GET requests, the parameter will be appended to the end of the URL as a query parameter. For POST requests, the parameter will be added to the request's form body.

Since

200.2.0

Parameters


abstract fun addParameter(name: String, value: String): Request.Builder

Adds a request parameter with the given name and value to the request. For GET requests, the parameter will be appended to the end of the URL as a query parameter. For POST requests, the parameter will be added to the request's form body.

Since

200.2.0

Parameters

name

the name used in the parameter.

value

the value used in the parameter.