Skip to content

Commit 3f3a1d8

Browse files
committed
Merge pull request #17 from leods92/patch-1
Update README.md
2 parents 19ef353 + 4a05627 commit 3f3a1d8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Build Status][travis-badge]][travis] [![Coverage][coveralls-badge]][coveralls] [![Climate][code-climate-badge]][code-climate] [![Dependencies][gemnasium-badge]][gemnasium] [![gittip][gittip-badge]][gittip]
44

55
Paginate in your headers, not in your response body.
6+
This follows the proposed [RFC-5988](http://tools.ietf.org/html/rfc5988) standard for Web linking.
67

78
## Installation
89

@@ -88,10 +89,10 @@ Then `curl --include` to see your header-based pagination in action:
8889
```bash
8990
$ curl --include 'https://localhost:3000/movies?page=5'
9091
HTTP/1.1 200 OK
91-
Link: <http://localhost:3000/movies?page=1>; rel="first">,
92-
<http://localhost:3000/movies?page=173>; rel="last">,
93-
<http://localhost:3000/movies?page=6>; rel="next">,
94-
<http://localhost:3000/movies?page=4>; rel="prev">
92+
Link: <http://localhost:3000/movies?page=1>; rel="first",
93+
<http://localhost:3000/movies?page=173>; rel="last",
94+
<http://localhost:3000/movies?page=6>; rel="next",
95+
<http://localhost:3000/movies?page=4>; rel="prev"
9596
Total: 4321
9697
# ...
9798
```

0 commit comments

Comments
 (0)