home

Menu
  • ripgrep search

ripgrep

Options:

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

datasette/docs/internals.rst

1286    async def fetch_url(url):
1287        with trace("fetch-url", url=url):
1288            async with httpx.AsyncClient() as client:
1289                return await client.get(url)
1290

datasette/datasette/app.py

1899
1900    async def get(self, path, **kwargs):
1901        async with httpx.AsyncClient(app=self.app) as client:
1902            return await client.get(self._fix(path), **kwargs)
1903
1904    async def options(self, path, **kwargs):
1905        async with httpx.AsyncClient(app=self.app) as client:
1906            return await client.options(self._fix(path), **kwargs)
1907
1908    async def head(self, path, **kwargs):
1909        async with httpx.AsyncClient(app=self.app) as client:
1910            return await client.head(self._fix(path), **kwargs)
1911
1912    async def post(self, path, **kwargs):
1913        async with httpx.AsyncClient(app=self.app) as client:
1914            return await client.post(self._fix(path), **kwargs)
1915
1916    async def put(self, path, **kwargs):
1917        async with httpx.AsyncClient(app=self.app) as client:
1918            return await client.put(self._fix(path), **kwargs)
1919
1920    async def patch(self, path, **kwargs):
1921        async with httpx.AsyncClient(app=self.app) as client:
1922            return await client.patch(self._fix(path), **kwargs)
1923
1924    async def delete(self, path, **kwargs):
1925        async with httpx.AsyncClient(app=self.app) as client:
1926            return await client.delete(self._fix(path), **kwargs)
1927
1928    async def request(self, method, path, **kwargs):
1929        avoid_path_rewrites = kwargs.pop("avoid_path_rewrites", None)
1930        async with httpx.AsyncClient(app=self.app) as client:
1931            return await client.request(
1932                method, self._fix(path, avoid_path_rewrites), **kwargs
Powered by Datasette