trow
trow copied to clipboard
Support Link header for pagination
From the spec:
"Compliant client implementations SHOULD always use the Link header value when proceeding through results linearly."
This affects the catalog api etc.
@amouat I just want to confirm this is the correct page of the spec. https://github.com/opencontainers/distribution-spec/blob/master/spec.md#pagination I'm going to take a crack at adding the header.
That would fantastic, thanks! Yes, that's the right place. You'll probably need to look into Rocket return types. There's a few examples in the code, but feel free to e-mail me if you'd like any help or pointers.
@amouat I'm not going to have time over the next month to work on this feature.
No problem @cpitkin. Thanks for taking a look anyway!
I would be up for attempting this issue.