class Playwright::Route
def fulfill(
page.route("**/xhr_endpoint", lambda route: route.fulfill(path="mock_data.json"))
```python sync
An example of serving static file:
```
body="not found!"))
content_type="text/plain",
status=404,
page.route("**/*", lambda route: route.fulfill(
```python sync
An example of fulfilling all requests with 404 responses:
**Usage**
Fulfills route's request with given response.
def fulfill( body: nil, contentType: nil, headers: nil, json: nil, path: nil, response: nil, status: nil) wrap_impl(@impl.fulfill(body: unwrap_impl(body), contentType: unwrap_impl(contentType), headers: unwrap_impl(headers), json: unwrap_impl(json), path: unwrap_impl(path), response: unwrap_impl(response), status: unwrap_impl(status))) end