src/rehyved/Http/HttpRequest.php
public function basicAuthentication(string $username, string $password = ""): HttpRequest
    {
        $this->username = $username;
        $this->password = $password;
        return $this;
    }
public function basicAuthentication(string $username, string $password = ""): HttpRequest
    {
        $this->username = $username;
        $this->password = $password;
        return $this;
    }
public function basicAuthentication ( string $ username , string $ password = "" ) : HttpRequest { $ this -> username = $ username ; $ this -> password = $ password ; return $ this ; }
Sets the basic authentication to use on the HttpRequest
@param string $username the username to use with Basic Authentication
@param string $password the password to use with Basic Authentication
@return HttpRequest
Sets the basic authentication to use on the HttpRequest