| 663 | |
| 664 | |
| 665 | struct OK : Response |
| 666 | { |
| 667 | OK() |
| 668 | : Response(Status::OK) {} |
| 669 | |
| 670 | explicit OK(const char* body) |
| 671 | : Response(std::string(body), Status::OK) {} |
| 672 | |
| 673 | explicit OK(const std::string& body) |
| 674 | : Response(body, Status::OK) {} |
| 675 | |
| 676 | explicit OK(const std::string& body, const std::string& contentType) |
| 677 | : Response(body, Status::OK, contentType) {} |
| 678 | |
| 679 | OK(const JSON::Value& value, const Option<std::string>& jsonp = None()); |
| 680 | |
| 681 | OK(JSON::Proxy&& value, const Option<std::string>& jsonp = None()); |
| 682 | }; |
| 683 | |
| 684 | |
| 685 | struct Accepted : Response |
no outgoing calls