Skip to content
David E. Wheeler edited this page Mar 23, 2017 · 2 revisions

HTTP Headers

PGXN API servers provide a special HTTP header not provided by mirror servers. The header is X-PGXN-API-Version and identifies the semantic version of the release of PGXN::API that's serving the API:

> curl -I https://api.pgxn.org/index.json
HTTP/1.1 200 OK
Date: Wed, 27 Apr 2011 00:00:39 GMT
Content-Type: application/json
Content-Length: 576
Last-Modified: Mon, 25 Apr 2011 18:15:31 GMT
X-PGXN-API-Version: v0.12.5

Use this header to distinguish API servers from mirror servers. In the future it may be used to ascertain what API features are available, although it should not be necessary, since all APIs are identified by the index API.

Clone this wiki locally