https://bugzilla.wikimedia.org/show_bug.cgi?id=64508
Bug ID: 64508
Summary: Add a Maxlag header
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Web browser: ---
Mobile Platform: ---
As API user it is confusing, if I had to mix API payload with request handling
(retry) params
e.G.:
HEADER: User-Agent:... [email protected] ...
HEADER: Accept-Encoding: gzip
HEADER: Accept: application/json
REQUEST: api.php?action=query&meta=siteinfo&maxlag=5
says:My client is written by "[email protected]", it will accept gziped json
respones and send you a GET with request: give me the siteinfo of the wiki
please (and btw: my client supports wikipedia maxlag request throttleing)
...
What do you think about:
HEADER: X-Accept-MediaWiki:maxlag
says:My client .... will accept correct retry handling of responses with
Statuscode 200 or 503 with headers:
MediaWiki-API-Error: maxlag (optional)
Retry-After: [0-9]+
X-Database-Lag: [0-9]+
See Also: http://en.wikipedia.org/wiki/Content_negotiation
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l