--- a/mercurial/help/internals/wireprotocol.txt Mon Mar 19 16:43:47 2018 -0700
+++ b/mercurial/help/internals/wireprotocol.txt Tue Mar 13 11:57:43 2018 -0700
@@ -152,11 +152,14 @@
Version 2 of the HTTP protocol is exposed under the ``/api/*`` URL space.
It's final API name is not yet formalized.
-Commands are triggered by sending HTTP requests against URLs of the
+Commands are triggered by sending HTTP POST requests against URLs of the
form ``<permission>/<command>``, where ``<permission>`` is ``ro`` or
``rw``, meaning read-only and read-write, respectively and ``<command>``
is a named wire protocol command.
+Non-POST request methods MUST be rejected by the server with an HTTP
+405 response.
+
Commands that modify repository state in meaningful ways MUST NOT be
exposed under the ``ro`` URL prefix. All available commands MUST be
available under the ``rw`` URL prefix.