www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (INFRA-10240) closer.lua: add option to return just the preferred server
Date Thu, 03 Sep 2015 10:45:45 GMT
Sebb created INFRA-10240:

             Summary: closer.lua: add option to return just the preferred server
                 Key: INFRA-10240
                 URL: https://issues.apache.org/jira/browse/INFRA-10240
             Project: Infrastructure
          Issue Type: New Feature
          Components: Mirrors
            Reporter: Sebb

The closer.lua script already supports output in JSON format (?asjson=1)

JSON is not particularly difficult to parse, but it seems to me that it is quite likely that
many projects are just interested in the preferred server URL.

It might therefore be useful to add an option to return this only?
This would reduce the work by the server and the client.

For example, the syntax could be:


Note that it is already possible to get this info as follows:


The preferred URL will be returned as the 'Location" header in a 302 response. However this
is not ideal.

This message was sent by Atlassian JIRA

View raw message