MCPcopy Create free account
hub / github.com/apache/brpc / Swap

Method Swap

src/brpc/http_header.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void HttpHeader::Swap(HttpHeader &rhs) {
38 _headers.swap(rhs._headers);
39 _uri.Swap(rhs._uri);
40 std::swap(_status_code, rhs._status_code);
41 std::swap(_method, rhs._method);
42 _content_type.swap(rhs._content_type);
43 _unresolved_path.swap(rhs._unresolved_path);
44 std::swap(_version, rhs._version);
45}
46
47void HttpHeader::Clear() {
48 _headers.clear();

Callers

nothing calls this directly

Calls 2

swapFunction · 0.70
swapMethod · 0.45

Tested by

no test coverage detected