MCPcopy Create free account
hub / github.com/chronoxor/CppServer / swap

Method swap

source/server/http/http_response.cpp:657–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657void HTTPResponse::swap(HTTPResponse& response) noexcept
658{
659 using std::swap;
660 swap(_error, response._error);
661 swap(_status, response._status);
662 swap(_status_phrase_index, response._status_phrase_index);
663 swap(_status_phrase_size, response._status_phrase_size);
664 swap(_protocol_index, response._protocol_index);
665 swap(_protocol_size, response._protocol_size);
666 swap(_headers, response._headers);
667 swap(_body_index, response._body_index);
668 swap(_body_size, response._body_size);
669 swap(_body_length, response._body_length);
670 swap(_body_length_provided, response._body_length_provided);
671 swap(_cache, response._cache);
672 swap(_cache_size, response._cache_size);
673}
674
675} // namespace HTTP
676} // namespace CppServer

Callers

nothing calls this directly

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected