MCPcopy Create free account
hub / github.com/apache/httpd / sc_for_req_method_by_id

Function sc_for_req_method_by_id

modules/proxy/ajp_header.c:170–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168};
169
170static int sc_for_req_method_by_id(request_rec *r)
171{
172 int method_id = r->method_number;
173 if (method_id < 0 || method_id > M_INVALID) {
174 return UNKNOWN_METHOD;
175 }
176 else if (r->header_only) {
177 return SC_M_HEAD;
178 }
179 else {
180 return sc_for_req_method_table[method_id] ?
181 sc_for_req_method_table[method_id] : UNKNOWN_METHOD;
182 }
183}
184
185/*
186 * Message structure

Callers 1

ajp_marshal_into_msgbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected