feature: added pure C API function for FFI-based implementations of ngx.req.set_method().