Mercurial > public > mercurial-scm > hg
diff tests/test-http-api-httpv2.t @ 37054:e7a012b60d6e
wireproto: implement basic command dispatching for HTTPv2
Now that we can ingest frames and decode them to requests to run
commands, we are able to actually run those commands. So this
commit starts to implement that.
There are numerous shortcomings. We can't operate on commands
with "*" arguments. We can only emit bytesresponse results. We
don't yet issue a response in the unified framing protocol.
But it's a start.
Differential Revision: https://phab.mercurial-scm.org/D2857
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 14 Mar 2018 13:32:31 -0700 |
parents | 8c3c47362934 |
children | 61393f888dfe |
line wrap: on
line diff
--- a/tests/test-http-api-httpv2.t Wed Mar 14 08:18:15 2018 -0700 +++ b/tests/test-http-api-httpv2.t Wed Mar 14 13:32:31 2018 -0700 @@ -196,9 +196,9 @@ s> Server: testing stub value\r\n s> Date: $HTTP_DATE$\r\n s> Content-Type: text/plain\r\n - s> Content-Length: 18\r\n + s> Content-Length: 29\r\n s> \r\n - s> ro/customreadonly\n + s> customreadonly bytes response Request to read-write command fails because server is read-only by default @@ -303,9 +303,9 @@ s> Server: testing stub value\r\n s> Date: $HTTP_DATE$\r\n s> Content-Type: text/plain\r\n - s> Content-Length: 18\r\n + s> Content-Length: 29\r\n s> \r\n - s> rw/customreadonly\n + s> customreadonly bytes response Authorized request for unknown command is rejected