MCPcopy Create free account
hub / github.com/apache/trafficserver / is_request_conditional

Function is_request_conditional

src/proxy/http/HttpTransact.cc:463–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463inline static bool
464is_request_conditional(HTTPHdr *header)
465{
466 uint64_t mask = (MIME_PRESENCE_IF_UNMODIFIED_SINCE | MIME_PRESENCE_IF_MODIFIED_SINCE | MIME_PRESENCE_IF_RANGE |
467 MIME_PRESENCE_IF_MATCH | MIME_PRESENCE_IF_NONE_MATCH);
468 return (header->presence(mask) &&
469 (header->method_get_wksidx() == HTTP_WKSIDX_GET || header->method_get_wksidx() == HTTP_WKSIDX_HEAD));
470}
471
472static inline bool
473is_port_in_range(int port, HttpConfigPortRange *pr)

Calls 2

presenceMethod · 0.80
method_get_wksidxMethod · 0.80

Tested by

no test coverage detected