| 655 | } |
| 656 | |
| 657 | void 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 |