src: Remove lookup_method_token(const std::string&)
This commit is contained in:
parent
00b2d7d513
commit
07926cffca
|
@ -1205,11 +1205,6 @@ bool expect_response_body(int method_token, int status_code) {
|
||||||
return method_token != HTTP_HEAD && expect_response_body(status_code);
|
return method_token != HTTP_HEAD && expect_response_body(status_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
int lookup_method_token(const std::string &name) {
|
|
||||||
return lookup_method_token(reinterpret_cast<const uint8_t *>(name.c_str()),
|
|
||||||
name.size());
|
|
||||||
}
|
|
||||||
|
|
||||||
int lookup_method_token(const StringRef &name) {
|
int lookup_method_token(const StringRef &name) {
|
||||||
return lookup_method_token(name.byte(), name.size());
|
return lookup_method_token(name.byte(), name.size());
|
||||||
}
|
}
|
||||||
|
|
|
@ -352,7 +352,6 @@ bool expect_response_body(int status_code);
|
||||||
// Only methods defined in http-parser/http-parser.h (http_method) are
|
// Only methods defined in http-parser/http-parser.h (http_method) are
|
||||||
// tokenized. If method name cannot be tokenized, returns -1.
|
// tokenized. If method name cannot be tokenized, returns -1.
|
||||||
int lookup_method_token(const uint8_t *name, size_t namelen);
|
int lookup_method_token(const uint8_t *name, size_t namelen);
|
||||||
int lookup_method_token(const std::string &name);
|
|
||||||
int lookup_method_token(const StringRef &name);
|
int lookup_method_token(const StringRef &name);
|
||||||
|
|
||||||
// Returns string representation of |method_token|. This is wrapper
|
// Returns string representation of |method_token|. This is wrapper
|
||||||
|
|
Loading…
Reference in New Issue