- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 1,223 for headers (0.09 sec)
-
tests/test_dependency_contextmanager.py
) tasks.add_task(bg, state) return state @app.middleware("http") async def middleware(request, call_next): response: StreamingResponse = await call_next(request) response.headers["x-state"] = json.dumps(state.copy()) return response client = TestClient(app) def test_async_state(): assert state["/async"] == "asyncgen not started" response = client.get("/async")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 04:13:50 UTC 2024 - 11.6K bytes - Viewed (0) -
ci/official/containers/linux_arm64/setup.python.sh
# set up symlink for devtoolset-10 rm -f /dt10/usr/include/aarch64-linux-gnu/$f ln -s /usr/include/aarch64-linux-gnu/$f /dt10/usr/include/aarch64-linux-gnu/$f done popd # Python 3.10 include headers fix: # sysconfig.get_path('include') incorrectly points to /usr/local/include/python # map /usr/include/python3.10 to /usr/local/include/python3.10 if [[ ! -f "/usr/local/include/$VERSION" ]]; then
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Tue Oct 01 12:56:16 UTC 2024 - 2.2K bytes - Viewed (0) -
docs_src/middleware/tutorial001.py
@app.middleware("http") async def add_process_time_header(request: Request, call_next): start_time = time.perf_counter() response = await call_next(request) process_time = time.perf_counter() - start_time response.headers["X-Process-Time"] = str(process_time)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 13:46:39 UTC 2024 - 365 bytes - Viewed (0) -
docs/en/docs/reference/uploadfile.md
```python from fastapi import UploadFile ``` ::: fastapi.UploadFile options: members: - file - filename - size - headers - content_type - read - write - seek
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 472 bytes - Viewed (0) -
docs_src/security/tutorial005.py
else: authenticate_value = "Bearer" credentials_exception = HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials", headers={"WWW-Authenticate": authenticate_value}, ) try: payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM]) username: str = payload.get("sub") if username is None:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.2K bytes - Viewed (0) -
docs_src/security/tutorial005_an.py
else: authenticate_value = "Bearer" credentials_exception = HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials", headers={"WWW-Authenticate": authenticate_value}, ) try: payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM]) username: str = payload.get("sub") if username is None:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.3K bytes - Viewed (0) -
src/main/resources/fess_config.properties
api.search.accept.referers= api.search.scroll=false api.json.response.headers= api.json.response.exception.included=false api.gsa.response.headers= api.gsa.response.exception.included=false api.dashboard.response.headers= api.cors.allow.origin=* api.cors.allow.methods=GET, POST, OPTIONS, DELETE, PUT api.cors.max.age=3600 api.cors.allow.headers=Origin, Content-Type, Accept, Authorization, X-Requested-With
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Tue Oct 01 14:13:38 UTC 2024 - 30.9K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial006b.py
client = TestClient(app) def test_redirect_response_class(): response = client.get("/fastapi", follow_redirects=False) assert response.status_code == 307 assert response.headers["location"] == "https://fastapi.tiangolo.com" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 899 bytes - Viewed (0) -
docs/pt/docs/advanced/using-request-directly.md
# Utilizando o Request diretamente Até agora você declarou as partes da requisição que você precisa utilizando os seus tipos. Obtendo dados de: * Os parâmetros das rotas. * Cabeçalhos (*Headers*). * Cookies. * etc. E ao fazer isso, o **FastAPI** está validando as informações, convertendo-as e gerando documentação para a sua API automaticamente. Porém há situações em que você possa precisar acessar o objeto `Request` diretamente.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
assertThat(request.header("Host")).isNull() assertThat(request.header("Accept-Encoding")).isNull() // No extra headers in the application's response. val response = client.newCall(request).execute() assertThat(request.header("Content-Encoding")).isNull() assertThat(response.body.string()).isEqualTo("abcabcabc") } @Test fun networkInterceptorsCanChangeRequestMethodFromGetToPost() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 27.8K bytes - Viewed (0)