src/rehyved/Http/HttpRequest.php
public function authorization(string $scheme, string $value): HttpRequest
    {
        if (empty($scheme)) {
            throw new \InvalidArgumentException("Scheme was null or empty");
        }
        if (empty($value)) {
            throw new \InvalidArgumentException("Value was null or empty");
        }
        return $this->header("Authorization", $scheme . " " . $value);
    }
public function authorization(string $scheme, string $value): HttpRequest
    {
        if (empty($scheme)) {
            throw new \InvalidArgumentException("Scheme was null or empty");
        }
        if (empty($value)) {
            throw new \InvalidArgumentException("Value was null or empty");
        }
        return $this->header("Authorization", $scheme . " " . $value);
    }
public function authorization ( string $ scheme , string $ value ) : HttpRequest { if ( empty ( $ scheme ) ) { throw new \ InvalidArgumentException ( "Scheme was null or empty" ) ; } if ( empty ( $ value ) ) { throw new \ InvalidArgumentException ( "Value was null or empty" ) ; } return $ this -> header ( "Authorization" , $ scheme . " " . $ value ) ; }
Sets the Authorization header of the HttpRequest
@param string $scheme the scheme to use in the value of the Authorization header (e.g. Bearer)
@param string $value the value to set for the the Authorization header
@return HttpRequest
Sets the Authorization header of the HttpRequest