tests/test-http-api-httpv2.t
changeset 37718 ad1c07008e0b
parent 37657 23c4ddda7bbe
child 37722 89a16704114c
equal deleted inserted replaced
37717:0664be4f0c1f 37718:ad1c07008e0b
   182 
   182 
   183   $ sendhttpv2peer << EOF
   183   $ sendhttpv2peer << EOF
   184   > command customreadonly
   184   > command customreadonly
   185   > EOF
   185   > EOF
   186   creating http peer for wire protocol version 2
   186   creating http peer for wire protocol version 2
   187   s>     GET /?cmd=capabilities HTTP/1.1\r\n
       
   188   s>     Accept-Encoding: identity\r\n
       
   189   s>     vary: X-HgProto-1,X-HgUpgrade-1\r\n
       
   190   s>     x-hgproto-1: cbor\r\n
       
   191   s>     x-hgupgrade-1: exp-http-v2-0001\r\n
       
   192   s>     accept: application/mercurial-0.1\r\n
       
   193   s>     host: $LOCALIP:$HGPORT\r\n (glob)
       
   194   s>     user-agent: Mercurial debugwireproto\r\n
       
   195   s>     \r\n
       
   196   s> makefile('rb', None)
       
   197   s>     HTTP/1.1 200 OK\r\n
       
   198   s>     Server: testing stub value\r\n
       
   199   s>     Date: $HTTP_DATE$\r\n
       
   200   s>     Content-Type: application/mercurial-cbor\r\n
       
   201   s>     Content-Length: *\r\n (glob)
       
   202   s>     \r\n
       
   203   s>     \xa3Dapis\xa1Pexp-http-v2-0001\xa4Hcommands\xa9Eheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyCnewCnewColdColdInamespaceBnsKpermissions\x81DpushHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullNcustomreadonly\xa2Dargs\xa0Kpermissions\x81DpullOcustomreadwrite\xa2Dargs\xa0Kpermissions\x81DpushKcompression\x82\xa1DnameDzstd\xa1DnameDzlibNrawrepoformats\x82LgeneraldeltaHrevlogv1Qframingmediatypes\x81X&application/mercurial-exp-framing-0003GapibaseDapi/Nv1capabilitiesY\x01\xcabatch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
       
   204   sending customreadonly command
   187   sending customreadonly command
   205   s>     POST /api/exp-http-v2-0001/ro/customreadonly HTTP/1.1\r\n
   188   s>     POST /api/exp-http-v2-0001/ro/customreadonly HTTP/1.1\r\n
   206   s>     Accept-Encoding: identity\r\n
   189   s>     Accept-Encoding: identity\r\n
   207   s>     accept: application/mercurial-exp-framing-0003\r\n
   190   s>     accept: application/mercurial-exp-framing-0003\r\n
   208   s>     content-type: application/mercurial-exp-framing-0003\r\n
   191   s>     content-type: application/mercurial-exp-framing-0003\r\n