| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/test/embedded_test_server/http_request.h" | 5 #include "net/test/embedded_test_server/http_request.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 } else if (token == "post") { | 239 } else if (token == "post") { |
| 240 return METHOD_POST; | 240 return METHOD_POST; |
| 241 } else if (token == "put") { | 241 } else if (token == "put") { |
| 242 return METHOD_PUT; | 242 return METHOD_PUT; |
| 243 } else if (token == "delete") { | 243 } else if (token == "delete") { |
| 244 return METHOD_DELETE; | 244 return METHOD_DELETE; |
| 245 } else if (token == "patch") { | 245 } else if (token == "patch") { |
| 246 return METHOD_PATCH; | 246 return METHOD_PATCH; |
| 247 } else if (token == "connect") { | 247 } else if (token == "connect") { |
| 248 return METHOD_CONNECT; | 248 return METHOD_CONNECT; |
| 249 } else if (token == "options") { |
| 250 return METHOD_OPTIONS; |
| 249 } | 251 } |
| 250 LOG(WARNING) << "Method not implemented: " << token; | 252 LOG(WARNING) << "Method not implemented: " << token; |
| 251 return METHOD_GET; | 253 return METHOD_GET; |
| 252 } | 254 } |
| 253 | 255 |
| 254 } // namespace test_server | 256 } // namespace test_server |
| 255 } // namespace net | 257 } // namespace net |
| OLD | NEW |