home

Menu
  • ripgrep search

ripgrep

Options:

For example *.py or **/templates/**/*.html or datasette/** or !setup.py

datasette/docs/internals.rst

1055    async def fetch_url(url):
1056        with trace("fetch-url", url=url):
1057            async with httpx.AsyncClient() as client:
1058                return await client.get(url)
1059

datasette/datasette/app.py

1528
1529    async def get(self, path, **kwargs):
1530        async with httpx.AsyncClient(app=self.app) as client:
1531            return await client.get(self._fix(path), **kwargs)
1532
1533    async def options(self, path, **kwargs):
1534        async with httpx.AsyncClient(app=self.app) as client:
1535            return await client.options(self._fix(path), **kwargs)
1536
1537    async def head(self, path, **kwargs):
1538        async with httpx.AsyncClient(app=self.app) as client:
1539            return await client.head(self._fix(path), **kwargs)
1540
1541    async def post(self, path, **kwargs):
1542        async with httpx.AsyncClient(app=self.app) as client:
1543            return await client.post(self._fix(path), **kwargs)
1544
1545    async def put(self, path, **kwargs):
1546        async with httpx.AsyncClient(app=self.app) as client:
1547            return await client.put(self._fix(path), **kwargs)
1548
1549    async def patch(self, path, **kwargs):
1550        async with httpx.AsyncClient(app=self.app) as client:
1551            return await client.patch(self._fix(path), **kwargs)
1552
1553    async def delete(self, path, **kwargs):
1554        async with httpx.AsyncClient(app=self.app) as client:
1555            return await client.delete(self._fix(path), **kwargs)
1556
1557    async def request(self, method, path, **kwargs):
1558        avoid_path_rewrites = kwargs.pop("avoid_path_rewrites", None)
1559        async with httpx.AsyncClient(app=self.app) as client:
1560            return await client.request(
1561                method, self._fix(path, avoid_path_rewrites), **kwargs
Powered by Datasette