w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
370 stars 42 forks source link

Add `network.BytesValue` type #472

Closed jgraham closed 1 year ago

jgraham commented 1 year ago

This provides a uniform representation of network data that may be UTF-8 text or may be arbitary binary data. Non-UTF-8 data is always encoded as base64 for transport.

This is a backwards-incompatible change since it coverts the network.Cookie and network.Headers types from either having a value or binaryValue field to always having a value field, but the value being an object with a type field to distinguish the variants.


Preview | Diff

jgraham commented 1 year ago

@juliandescottes can you review this?