Results of 1 - 10 of about 18 for requests (0.002 sec.)
- FastAPI People 14687
- FastAPI People FastAPI has an amazing community that welcomes people from all backgrounds. Creator Hey! ? This is me: @tiangolo Answers: 1894 Pull Requests: 723 I'm the creator of FastAPI . You can read more about that in Help FastAPI - Get
...And I want to highlight their contributions. These are the people that: Help others with questions in GitHub . Create Pull Requests . Review Pull Requests, especially important for translations . Help manage the repository (team members). All these tasks...caeser1996 Questions replied: 17 Top Contributors Here are the Top Contributors . ? These users have created the most Pull Requests that have been merged . They have contributed source code, documentation, etc. ? @alejsdev Pull Requests: 47 @Kludex Pull...Requests: 23 @dmontagu Pull Requests: 17 @euri10 Pull Requests: 13 @kantandane Pull Requests: 13 @nilslindemann Pull Requests: 11 @zhaohan-dong Pull Requests:... - https://man.mtool.work/fastapi/0.115/fastapi-people/
- Lifespan Events 10226
- Lifespan Events Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can define logic (code) that should be executed before the application starts up . This means t
...hat this code will be executed once , before the application starts receiving requests . The same way, you can define logic (code) that should be executed when the application is shutting down . In this case,...this code will be executed once , after having handled possibly many requests . Because this code is executed before the application starts taking requests, and right after it finishes handling reques...ond ?). This can be very useful for setting up resources that you need to use for the whole app, and that are shared among requests, and/or that you need to clean up afterwards. For example, a database connection pool, or loading a shared machine learnin... - https://man.mtool.work/fastapi/0.115/advanced/events/
- HTTPConnection class 9866
- HTTPConnection class When you want to define dependencies that should be compatible with both HTTP and WebSockets, you can define a parameter that takes an HTTPConnection instead of a Request or a WebSocket . You can import it from fastapi.
...requests : from fastapi.requests import HTTPConnection ::: fastapi.requests.HTTPConnection... - https://man.mtool.work/fastapi/0.115/reference/httpconnection/
- OpenAPI Webhooks 9763
- OpenAPI Webhooks Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . There are cases where you want to tell your API users that your app could call their app (sending
...some data, normally to notify of some type of event . This means that instead of the normal process of your users sending requests to your API, it's your API (or your app) that could send requests to their system (to their API, their app). This is norma...essage that you will send, the body of the request . You also define in some way at which moments your app will send those requests or events. And your users define in some way (for example in a web dashboard somewhere) the URL where your app should send...those requests. All the logic about how to register the URLs for webhooks and the code to actually send those requests is up to you. You... - https://man.mtool.work/fastapi/0.115/advanced/openapi-webhooks/
- Async Tests 8716
- Async Tests Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You have already seen how to test your FastAPI applications using the provided TestClient . Up to now,
...ur tests could be useful, for example, when you're querying your database asynchronously. Imagine you want to test sending requests to your FastAPI application and then verify that your backend successfully wrote the correct data in the database, while u...f instead of just def as before when using the TestClient . Then we can create an AsyncClient with the app, and send async requests to it, using await . Python 3.8+ import pytest from httpx import ASGITransport , AsyncClient from .main import app @pytest...json () == { "message" : "Tomato" } This is the equivalent to: response = client . get ( '/' ) ...that we used to make our requests with the TestClient . Tip Note that we're using async/await with the new AsyncClient - the request is asynchronous. Warnin... - https://man.mtool.work/fastapi/0.115/advanced/async-tests/
- 代替ツールから受けたインスピレーションと比較 8493
- 代替ツールから受けたインスピレーションと比較 何が FastAPI にインスピレーションを与えたのか、他の代替ツールと比較してどうか、そしてそこから何を学んだのかについて。 はじめに FastAPI は、代替ツールのこれまでの働きがなければ存在しなかったでしょ
...であること。ツールやパーツを目的に合うように簡単に組み合わせられる点。 シンプルで簡単なルーティングの仕組みを持っている点。 Requests FastAPI は実際には Requests の代替ではありません。それらのスコープは大きく異なります。 実際にはFastAPIアプリケーションの 内...部 でRequestsを使用するのが一般的です。 しかし、FastAPIはRequestsからかなりのインスピレーションを得ています。 Requests は (クライアントと...I は (サーバーとして) APIを 構築 するためのライブラリです。 これらは多かれ少なかれ両端にあり、お互いを補完し合っています。 Requestsは非常にシンプルかつ直感的なデザインで使いやすく、適切なデフォルト値を設定しています。しかし同時に、非常に強力でカスタマイズ... - https://man.mtool.work/fastapi/0.115/alternatives/
- Development - Contributing 8218
- Development - Contributing Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . First, you might want to see the basic ways to help FastAPI and get help . Developing If
...rom the community. ? ? Here are the steps to help with translations. Tips and guidelines Check the currently existing pull requests for your language. You can filter the pull requests by the ones with the label for your language. For example, for Spanish..., the label is lang-es . Review those pull requests, requesting changes or approving them. For the languages I don't speak, I'll wait for several others to review the transla...tion before merging. Tip You can add comments with change suggestions to existing pull requests. Check the docs about adding a pull request review to approve it or request changes. Check if there's a GitHub Discussion... - https://man.mtool.work/fastapi/0.115/contributing/
- Advanced Middleware 8081
- Advanced Middleware Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In the main tutorial you read how to add Custom Middleware to your application. And then you al
...er. But most of the available middlewares come directly from Starlette. HTTPSRedirectMiddleware Enforces that all incoming requests must either be https or wss . Any incoming request to http or ws will be redirected to the secure scheme instead. Python 3...app . get ( "/" ) async def main (): return { "message" : "Hello World" } TrustedHostMiddleware Enforces that all incoming requests have a correctly set Host header, in order to guard against HTTP Host Header attacks. Python 3.8+ from fastapi import Fast... - https://man.mtool.work/fastapi/0.115/advanced/middleware/
- Custom Request and APIRoute class 8047
- Custom Request and APIRoute class Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some cases, you may want to override the logic used by the Request and APIRout
...es. Automatically logging all request bodies. Handling custom request body encodings Let's see how to make use of a custom Request subclass to decompress gzip requests. And an APIRoute subclass to use that custom request class. Create a custom GzipReques...header, it will not try to decompress the body. That way, the same route class can handle gzip compressed or uncompressed requests. Python 3.8+ import gzip from typing import Callable , List from fastapi import Body , FastAPI , Request , Response from f...eceive , are what is needed to create a new Request instance. To learn more about the Request check Starlette's docs about Requests . The only thing the function returned by GzipRequest.get_route_handler does differently is convert the Request to a GzipR... - https://man.mtool.work/fastapi/0.115/how-to/custom-request-and-route/
- Using the Request Directly 7772
- Using the Request Directly Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Up to now, you have been declaring the parts of the request that you need with their typ
...bout the Request object in the official Starlette documentation site . Technical Details You could also use from starlette.requests import Request . FastAPI provides it directly just as a convenience for you, the developer. But it comes directly from Sta... - https://man.mtool.work/fastapi/0.115/advanced/using-request-directly/