Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP headers vs payload #8

Closed
cportele opened this issue Nov 8, 2017 · 1 comment
Closed

HTTP headers vs payload #8

cportele opened this issue Nov 8, 2017 · 1 comment

Comments

@cportele
Copy link
Member

cportele commented Nov 8, 2017

One design question is whether information about a resource returned by the server should be put in the HTTP headers or included in the payload.

Advantages of using HTTP headers:

  • If well-known headers exist like "Date" (for the timestamp) or "Link" (for qualified links), using those generic Web mechanisms would seem clearer than defining OGC/API-specific payload.
  • If existing payloads cannot be extended with additional information (e.g. a GML-SF0 feature collection or a PNG), using headers enables the direct reuse of such payloads, too.

Disadvantages of using HTTP headers:

  • For responses that will benefit from "streaming" (i.e., starting the response before the complete response is known), e.g. a query response, some information may not be available when the headers are written. numberMatched or some resource links are examples.
  • If only the payload is saved, the information in the header is "lost". It is unclear, if this is really an issue.
@cportele
Copy link
Member Author

Discussion in meeting 2017-11-28: Include links in the payload, but add recommendation to include links also in the header if there are not too many and the links are known, when the response is started.

@cportele cportele self-assigned this Nov 28, 2017
@cportele cportele added this to the Part 1, First Draft milestone Nov 28, 2017
cportele added a commit that referenced this issue Dec 14, 2017
cportele pushed a commit that referenced this issue Jan 18, 2021
Sync with opengeospatial master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant