quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test2503 (1018B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP/3
      6 HTTPS
      7 -w
      8 %header
      9 </keywords>
     10 </info>
     11 
     12 #
     13 # Server-side
     14 <reply>
     15 <data nocheck="yes" crlf="yes">
     16 HTTP/1.1 200 OK
     17 Date: Tue, 09 Nov 2010 14:49:00 GMT
     18 Content-Length: 6
     19 Connection: close
     20 Content-Type: text/html
     21 Funny-head: yesyes
     22 
     23 -foo-
     24 </data>
     25 </reply>
     26 
     27 #
     28 # Client-side
     29 <client>
     30 <features>
     31 http/3
     32 nghttpx-h3
     33 headers-api
     34 </features>
     35 <server>
     36 http/3
     37 </server>
     38 <name>
     39 HTTP/3 header-api
     40 </name>
     41 <setenv>
     42 </setenv>
     43 <command>
     44 -w '%{header_json}\n' --http3-only --cacert %CERTDIR/certs/test-ca.crt --resolve localhost:%HTTP3PORT:%HOSTIP https://localhost:%HTTP3PORT/%TESTNUMBER
     45 </command>
     46 
     47 </client>
     48 
     49 #
     50 # Verify data after the test has been "shot"
     51 <verify>
     52 <stdout crlf="yes">
     53 HTTP/3 200 
     54 date: Tue, 09 Nov 2010 14:49:00 GMT
     55 content-length: 6
     56 content-type: text/html
     57 funny-head: yesyes
     58 via: 1.1 nghttpx
     59 
     60 -foo-
     61 {"date":["Tue, 09 Nov 2010 14:49:00 GMT"],
     62 "content-length":["6"],
     63 "content-type":["text/html"],
     64 "funny-head":["yesyes"],
     65 "via":["1.1 nghttpx"]
     66 }
     67 </stdout>
     68 </verify>
     69 </testcase>