Extract signed exchange contents from CBOR
This patch teaches SignedExchangeHandler to decode signed exchange body encoded with the application/http-exchange+cbor format [1]. The test file origin-signed-response-iframe.htxg was created using gen-signedexchange of [2] with the following command: gen-signedexchange -uri https://example.com/test.html \ -content test.html -o origin-signed-response-iframe.htxg \ -miRecordSize=100 where test.html is the html part of origin-signed-response-iframe.php before this patch. [1] https://wicg.github.io/webpackage/draft-yasskin-http-origin-signed-responses.html#rfc.section.5 [2] https://github.com/WICG/webpackage/pull/119 Bug: 803774 Change-Id: I4d7bf5215e825cfa084c431db6d2cc87219d0a34 Reviewed-on: https://chromium-review.googlesource.com/897172 Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#534643}
Showing
This diff is collapsed.
File added
Please register or sign in to comment