Name

ap_http_method — return the scheme for a request

Synopsis

const char *ap_http_method(request_rec *r)

Returns the default scheme for the type of request handled by r. In standard Apache this is always an HTTP request, so the return is always http; but in Apache-SSL, for example, it depends on whether HTTP or HTTPS is in use.