HttpHeadersView.retain

Control whether headers are duplicated or not. Default behaviour is aliasing instead of copying, avoiding any allocatation overhead. However, the default won't preserve those headers once additional content has been read.

To retain headers across arbitrary buffering, you should set this option true

class HttpHeadersView
retain
(
bool yes = true
)

Meta