How do i convert response and request headers to arraybuffers?

how do i convert response and request headers to arraybuffers?

i would like to convert them for storage inside kv. how do i do that?

A post was merged into an existing topic: How can i store event.response or event.response.header into KV?