MCPcopy Create free account
hub / github.com/catboost/catboost / IsRequest

Method IsRequest

library/cpp/http/io/stream.cpp:276–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274 }
275
276 inline bool IsRequest() const {
277 // https://datatracker.ietf.org/doc/html/rfc7231#section-4
278 // more rare methods: https://www.iana.org/assignments/http-methods/http-methods.xhtml
279 return EqualToOneOf(to_lower(FirstLine().substr(0, FirstLine().find(" "))), "get", "post", "put", "head", "delete", "connect", "options", "trace", "patch");
280 }
281
282 inline void BuildInputChain() {
283 TParsedHeaders p;

Callers

nothing calls this directly

Calls 4

EqualToOneOfFunction · 0.85
to_lowerFunction · 0.85
substrMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected