mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-26 02:54:58 +00:00
20 lines
443 B
Plaintext
20 lines
443 B
Plaintext
section
|
|
h3(id='res.links') res.links(links)
|
|
|
|
p.
|
|
Join the given <code>links</code> to populate the "Link"
|
|
response header field.
|
|
|
|
+js.
|
|
res.links({
|
|
next: 'http://api.example.com/users?page=2',
|
|
last: 'http://api.example.com/users?page=5'
|
|
});
|
|
|
|
p yields:
|
|
|
|
pre
|
|
code.
|
|
Link: <http://api.example.com/users?page=2>; rel="next",
|
|
<http://api.example.com/users?page=5>; rel="last"
|