src/RequestDecorator.php
public function decorate(RequestInterface $request)
    {
        return $request->withHeader($this->headerName, $this->requestIdProvider->getRequestId());
    }
public function decorate(RequestInterface $request)
    {
        return $request->withHeader($this->headerName, $this->requestIdProvider->getRequestId());
    }
public function decorate ( RequestInterface $ request ) { return $ request -> withHeader ( $ this -> headerName , $ this -> requestIdProvider -> getRequestId ( ) ) ; }
Adds request id to request and return new instance

@param RequestInterface $request

@return RequestInterface
Adds request id to request and return new instance