def METHOD_NAME(temp_dir):
    path = Path(f'{temp_dir}/index.html')
    path.write_text('0123456789')
    assert 'success' in client.conf(
        {
            "listeners": {
                "*:7080": {"pass": "routes"},
            },
            "routes": [
                {
                    "action": {
                        "share": str(path),
                        "response_headers": {
                            "X-Foo": "foo",
                        },
                    }
                }
            ],
        }
    )