WordPress at a glance
filter is not described

rest_request_from_url filter-hook . WP 4.5.0

Filters the request generated from a URL.

Usage

add_filter( 'rest_request_from_url', 'filter_function_name_5191', 10, 2 );
function filter_function_name_5191( $request, $url ){
	// filter...

	return $request;
}
$request(WP_REST_Request/false)
Generated request object, or false if URL could not be parsed.
$url(string)
URL the request was generated from.

Where the hook is called

WP_REST_Request::from_url()
rest_request_from_url
wp-includes/rest-api/class-wp-rest-request.php 981
return apply_filters( 'rest_request_from_url', $request, $url );

Where the hook is used (in WP core)

Does not used.