public function HttpClient::setAuthentication in Http Client 7.2
Same name and namespace in other branches
- 6.2 includes/HttpClient.inc \HttpClient::setAuthentication()
Inject authentication class
Parameters
HttpClientAuthentication $auth: The class to use for authentication.
File
- includes/
HttpClient.inc, line 74
Class
- HttpClient
- A http client.
Code
public function setAuthentication(HttpClientAuthentication $auth) {
$this->authentication = $auth;
}