HttpHeadersView.retain

Control whether headers are duplicated or not. Default behaviour is aliasing instead of copying, avoiding any allocation 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 to true

class HttpHeadersView
retain
(
bool yes = true
)

Meta