Lcobucci\JWT\Builder::withHeader PHP 메소드

withHeader() 공개 메소드

Configures a header item
public withHeader ( string $name, mixed $value ) : Builder
$name string
$value mixed
리턴 Builder
    public function withHeader(string $name, $value) : Builder
    {
        if ($this->signature) {
            throw new BadMethodCallException('You must unsign before make changes');
        }
        $this->headers[$name] = $this->claimFactory->create($name, $value);
        return $this;
    }