HTTP
April 17, 2019 · View on GitHub
HTTP is one of the available protocols.
Engine-specific headers, e.g. params, must be
prefixed with X-Autoserver-, e.g. X-Autoserver-Params.
The following HTTP request headers have specific interpretations:
Content-TypeandAcceptset the format and the charset like theformatandcharsetquery variables do.Accept-Encodingsets the response's compression like thecompressquery variable does.Content-Encodingsets the request payload's compression like thecompressquery variable does.Prefer: return=minimalsets thesilentargument totrue. Same thing for theHEADmethod.X-HTTP-Method-Override: METHODoverrides the current HTTP method (which must bePOST)
The following HTTP response headers might be set, depending on the response:
Content-Type,Content-Length,Vary,Allow,X-Response-Time- when using REST and the response is paginated, a
Linkheader will be set withrelfirst,last,prevand/ornext. The header contains the full URI to retrieve the first, last, previous or next batch, as opposed tometadata.pageswhich only contain the cursor tokens.
Error responses
The HTTP status code of error responses depends on the error type. See the previous link for a list of the status codes used.