OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SERVICES_HTTP_SERVER_PUBLIC_HTTP_SERVER_UTIL_H_ | |
6 #define SERVICES_HTTP_SERVER_PUBLIC_HTTP_SERVER_UTIL_H_ | |
7 | |
8 #include "http_server/public/interfaces/http_response.mojom.h" | |
9 | |
10 namespace http_server { | |
11 | |
12 // Helper method to create an HttpResponse given the status code and body. | |
13 HttpResponsePtr CreateHttpResponse(uint32_t status_code, | |
14 const std::string& body); | |
15 } // namespace http_server | |
16 | |
17 #endif // SERVICES_HTTP_SERVER_PUBLIC_HTTP_SERVER_UTIL_H_ | |
OLD | NEW |