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

Method expect_final_response

include/proxy/hdrs/HTTP.h:926–936  ·  view source on GitHub ↗

Check the status code is informational and expecting final response - e.g. "100 Continue", "103 Early Hints" Please note that "101 Switching Protocol" is not included. */

Source from the content-addressed store, hash-verified

924 Please note that "101 Switching Protocol" is not included.
925 */
926inline bool
927HTTPHdr::expect_final_response() const
928{
929 switch (this->status_get()) {
930 case HTTP_STATUS_CONTINUE:
931 case HTTP_STATUS_EARLY_HINTS:
932 return true;
933 default:
934 return false;
935 }
936}
937
938/*-------------------------------------------------------------------------
939 -------------------------------------------------------------------------*/

Callers 2

send_headers_frameMethod · 0.80
update_write_requestMethod · 0.80

Calls 1

status_getMethod · 0.95

Tested by

no test coverage detected