| 168 | }; |
| 169 | |
| 170 | static 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 |
no outgoing calls
no test coverage detected