How can i convert http header request to byte stream and store in KV?

How can i convert http header request to byte stream and store in KV? and later retrieve?

resp.header()

How can i store and retrieve the same for http resp.body() too?

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