Auth0\SDK\API\Helpers\RequestBuilder::withHeaders PHP Method

withHeaders() public method

public withHeaders ( $headers )
    public function withHeaders($headers)
    {
        foreach ($headers as $header) {
            $this->withHeader($header);
        }
        return $this;
    }

Usage Example

Example #1
0
 public function __call($name, $arguments)
 {
     $builder = new RequestBuilder(array('domain' => $this->domain, 'method' => $name, 'path' => array($this->basePath)));
     return $builder->withHeaders($this->headers);
 }