2020-05-02 / 5117阅 / 悠然
发送“允许”标头以声明可以发送到当前路由的所有方法。
(WP_REST_Response)
(Required)
Current response being served.
(WP_REST_Server)
(Required)
ResponseHandler instance (usually WP_REST_Server).
(WP_REST_Request)
(Required)
The request that was used to make current response.
(WP_REST_Response) Response to be served, with "Allow" header if route has allowed methods.