diff options
Diffstat (limited to 'net/http/http_request_headers.h')
-rw-r--r-- | net/http/http_request_headers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_request_headers.h b/net/http/http_request_headers.h index ef4b60d..ae9b118 100644 --- a/net/http/http_request_headers.h +++ b/net/http/http_request_headers.h @@ -132,6 +132,10 @@ class HttpRequestHeaders { *this = other; } + void Swap(HttpRequestHeaders* other) { + headers_.swap(other->headers_); + } + // Serializes HttpRequestHeaders to a string representation. Joins all the // header keys and values with ": ", and inserts "\r\n" between each header // line, and adds the trailing "\r\n". |