- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 360 for router (0.05 sec)
-
docs/de/docs/tutorial/middleware.md
Zum Beispiel: ```Python app.add_middleware(MiddlewareA) app.add_middleware(MiddlewareB) ``` Dies führt zu folgender Ausführungsreihenfolge: * **Request**: MiddlewareB → MiddlewareA → Route * **Response**: Route → MiddlewareA → MiddlewareB Dieses Stapelverhalten stellt sicher, dass Middlewares in einer vorhersehbaren und kontrollierbaren Reihenfolge ausgeführt werden. ## Andere Middlewares { #other-middlewares }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.9K bytes - Viewed (0) -
docs_src/wsgi/tutorial001_py39.py
from fastapi import FastAPI from fastapi.middleware.wsgi import WSGIMiddleware from flask import Flask, request from markupsafe import escape flask_app = Flask(__name__) @flask_app.route("/") def flask_main(): name = request.args.get("name", "World") return f"Hello, {escape(name)} from Flask!" app = FastAPI() @app.get("/v2") def read_main(): return {"message": "Hello World"}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 443 bytes - Viewed (0) -
docs_src/openapi_callbacks/tutorial001_py310.py
"{$callback_url}/invoices/{$request.body.id}", response_model=InvoiceEventReceived ) def invoice_notification(body: InvoiceEvent): pass @app.post("/invoices/", callbacks=invoices_callback_router.routes) def create_invoice(invoice: Invoice, callback_url: HttpUrl | None = None): """ Create an invoice. This will (let's imagine) let the API user (some external developer) create an invoice.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 1.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt
override val timestampNs: Long, val route: Route, val call: Call, ) : ConnectionEvent() data class ConnectFailed( override val timestampNs: Long, val route: Route, val call: Call, val exception: IOException, ) : ConnectionEvent() { override fun closes(event: ConnectionEvent): Boolean = event is ConnectStart && call == event.call && route == event.route } data class ConnectEnd(Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 2.6K bytes - Viewed (0) -
okhttp/src/jvmTest/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat
bluebite.io // Boomla : https://boomla.com // Submitted by Tibor Halter <******@****.***> boomla.net // Boutir : https://www.boutir.com // Submitted by Eric Ng Ka Ka <ngkaka@boutir.com> boutir.com // Boxfuse : https://boxfuse.com // Submitted by Axel Fontaine <******@****.***> boxfuse.io // bplaced : https://www.bplaced.net/
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 309.7K bytes - Viewed (1) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
import okhttp3.Request; import okhttp3.Response; public final class Authenticate { private final OkHttpClient client; public Authenticate() { client = new OkHttpClient.Builder() .authenticator((route, response) -> { if (response.request().header("Authorization") != null) { return null; // Give up, we've already attempted to authenticate. }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 1.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Connection.kt
* been found. But only complete the stream once its data stream has been exhausted. */ interface Connection { /** Returns the route used by this connection. */ fun route(): Route /** * Returns the socket that this connection is using. Returns an * [SSL socket][javax.net.ssl.SSLSocket] if this connection is HTTPS. If this is an HTTP/2Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MultiReaderTest.java
String testString = "abcdefgh"; CharSource source = newCharSource(testString); int[] counter = new int[1]; CharSource reader = new CharSource() { @Override public Reader openStream() throws IOException { if (counter[0]++ != 0) { throw new IllegalStateException("More than one source open"); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
public final Object mutex = new Object[0]; // something Serializable protected <K, V> Map<K, V> create() { TestMap<K, V> inner = new TestMap<>(new HashMap<K, V>(), mutex); Map<K, V> outer = Synchronized.map(inner, mutex); return outer; } static class TestMap<K, V> extends ForwardingMap<K, V> implements Serializable { public final Object mutex; private final Map<K, V> delegate;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 14:47:20 UTC 2025 - 5.9K bytes - Viewed (0) -
docs/zh/docs/advanced/openapi-callbacks.md
### 添加回调路由 至此,在上文创建的回调路由里就包含了*回调路径操作*(外部开发者要在外部 API 中实现)。 现在使用 API *路径操作装饰器*的参数 `callbacks`,从回调路由传递属性 `.routes`(实际上只是路由/路径操作的**列表**): {* ../../docs_src/openapi_callbacks/tutorial001.py hl[36] *} /// tip | 提示 注意,不能把路由本身(`invoices_callback_router`)传递给 `callback=`,要传递 `invoices_callback_router.routes` 中的 `.routes` 属性。 /// ### 查看文档Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.5K bytes - Viewed (0)