public function withAddedLink($url, $options = [])
    {
        $params = [];
        foreach ($options as $key => $option) {
            $params[] = $key . '="' . $option . '"';
        }

        $param = '';
        if ($params) {
            $param = '; ' . implode('; ', $params);
        }

        return $this->withAddedHeader('Link', '<' . $url . '>' . $param);
    }
public function withAddedLink($url, $options = [])
    {
        $params = [];
        foreach ($options as $key => $option) {
            $params[] = $key . '="' . $option . '"';
        }

        $param = '';
        if ($params) {
            $param = '; ' . implode('; ', $params);
        }

        return $this->withAddedHeader('Link', '<' . $url . '>' . $param);
    }
public function withAddedLink ( $ url , $ options = [ ] ) { $ params = [ ] ; foreach ( $ options as $ key => $ option ) { $ params [ ] = $ key . '="' . $ option . '"' ; } $ param = '' ; if ( $ params ) { $ param = '; ' . implode ( '; ' , $ params ) ; } return $ this -> withAddedHeader ( 'Link' , '<' . $ url . '>' . $ param ) ; }
Create a new response with the Link header set.

### Examples

```
$response = $response->withAddedLink('http://example.com?page=1', ['rel' => 'prev'])
->withAddedLink('http://example.com?page=3', ['rel' => 'next']);
```

Will generate:

```
Link: <http://example.com?page=1>; rel="prev"
Link: <http://example.com?page=3>; rel="next"
```

@param string $url The LinkHeader url.
@param array $options The LinkHeader params.
@return static
@since 3.6.0
Create a new response with the Link header set .