httpx Questions
3
Solved
I would like to read from multiple simultanous HTTP streaming requests inside coroutines using httpx, and yield the data back to my non-async function running the event loop, rather than just retur...
Polygnotus asked 25/8, 2020 at 21:56
2
Solved
Getting above error have installing the correct package
Python --version
Python 3.6.9
Install command
pip3 install httpx
pip3 list
anyio (3.6.1)
async-generator (1.10)
Brotli (1.0.9)
certifi (2022....
Farrica asked 14/7, 2022 at 9:36
2
Solved
I have a FastAPI application which, in several different occasions, needs to call external APIs. I use httpx.AsyncClient for these calls. The point is that I don't fully understand how I shou...
1
My project consists of consuming an api that is built on top of the aws lambda service. Technically, the leader who built the api tells me that there is no fixed request limit since the service is ...
Torin asked 17/3, 2022 at 18:55
1
Solved
Is that possible to replace hyperlinks in StreamingResponse?
I'm using below code to stream HTML content.
from starlette.requests import Request
from starlette.responses import StreamingResponse
fr...
1
Solved
I have an API endpoint (FastAPI / Uvicorn). Among other things, it makes a request to yet another API for information. When I load my API with multiple concurrent requests, I begin to receive the f...
Ahmednagar asked 14/9, 2022 at 18:39
1
I am attempting to optimize a simple web scraper that I made. It gets a list of urls from a table on a main page and then goes to each of those "sub" urls and gets information from those ...
Leek asked 16/2, 2022 at 8:37
1
Solved
Consider this function that makes a simple GET request to an API endpoint:
import httpx
def check_status_without_session(url : str) -> int:
response = httpx.get(url)
return response.status_c...
2
Solved
We have a FastApi app and using httpx AsyncClient for testing purposes. We are experiencing a problem where the unit tests run locally fine but fail on the CI server (Github Actions).
After further...
3
I am very new to asynchronous programming and I was playing around with httpx. I have the following code and I am sure I am doing something wrong - just don't know what it is. There are two methods...
Annora asked 26/5, 2021 at 22:5
1
© 2022 - 2024 — McMap. All rights reserved.