- Sort Score
- Result 10 results
- Languages All
Results 731 - 740 of 869 for badsync (0.09 sec)
-
src/main/java/jcifs/internal/CommonServerMessageBlockResponse.java
import jcifs.util.transport.Response; /** * @author mbechler * */ public interface CommonServerMessageBlockResponse extends CommonServerMessageBlock, Response { /** * * @return is an async response */ boolean isAsync (); /** * * @return the next response */ @Override CommonServerMessageBlockResponse getNextResponse (); /**
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.3K bytes - Viewed (0) -
tests/test_security_oauth2_authorization_code_bearer.py
from fastapi.testclient import TestClient app = FastAPI() oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="authorize", tokenUrl="token", auto_error=True ) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.3K bytes - Viewed (0) -
tests/test_security_oauth2_authorization_code_bearer_description.py
app = FastAPI() oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="authorize", tokenUrl="token", description="OAuth2 Code Bearer", auto_error=True, ) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.4K bytes - Viewed (0) -
tests/test_security_oauth2_password_bearer_optional.py
from fastapi.security import OAuth2PasswordBearer from fastapi.testclient import TestClient app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/token", auto_error=False) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): if token is None: return {"msg": "Create an account first"} return {"token": token} client = TestClient(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/InetAddressOrder.kt
import java.net.Inet6Address import java.net.InetAddress import okhttp3.internal.interleave /** * Implementation of HappyEyeballs Sorting Addresses. * * The current implementation does not address any of: * - Async DNS split by IP class * - Stateful handling of connectivity results * - The prioritisation of addresses * * https://datatracker.ietf.org/doc/html/rfc8305#section-4 */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 1.3K bytes - Viewed (0) -
docs/em/docs/tutorial/first-steps.md
``` ๐ ๐ ๐ข. โซ๏ธ ๐ ๐ค **FastAPI** ๐โ โซ๏ธ ๐จ ๐จ ๐ "`/`" โ๏ธ `GET` ๐ ๏ธ. ๐ ๐ผ, โซ๏ธ `async` ๐ข. --- ๐ ๐ช ๐ฌ โซ๏ธ ๐ ๐ข โฉ๏ธ `async def`: ```Python hl_lines="7" {!../../docs_src/first_steps/tutorial003.py!} ``` /// note ๐ฅ ๐ ๐ซ ๐ญ ๐บ, โ [๐: *"๐ โ"*](../async.md#_2){.internal-link target=_blank}. /// ### ๐ 5๏ธโฃ: ๐จ ๐ ```Python hl_lines="8"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8K bytes - Viewed (0) -
docs/ja/docs/tutorial/first-steps.md
ใใใฏใPythonใฎ้ขๆฐใงใใ ใใฎ้ขๆฐใฏใ`GET`ใชใใฌใผใทใงใณใไฝฟใฃใURLใ`/`ใใธใฎใชใฏใจในใใๅใๅใใใณใซ**FastAPI**ใซใใฃใฆๅผใณๅบใใใพใใ ใใฎๅ ดๅใใใฎ้ขๆฐใฏ`async`้ขๆฐใงใใ --- `async def`ใฎไปฃใใใซ้ๅธธใฎ้ขๆฐใจใใฆๅฎ็พฉใใใใจใใงใใพใ: ```Python hl_lines="7" {!../../docs_src/first_steps/tutorial003.py!} ``` /// note | "ๅ่" ้ใใๅใใใชใๅ ดๅใฏใ[Async: *"ๆฅใใงใใพใใ๏ผ"*](../async.md#_1){.internal-link target=_blank}ใ็ขบ่ชใใฆใใ ใใใ /// ### Step 5: ใณใณใใณใใฎ่ฟไฟก
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.1K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/dependencies-with-yield.md
```Python hl_lines="4" {!../../docs_src/dependencies/tutorial007.py!} ``` ๐ ๐ `yield` ๐ ๐ ๏ธ โฎ๏ธ ๐จ โ๏ธ ๐: ```Python hl_lines="5-6" {!../../docs_src/dependencies/tutorial007.py!} ``` /// tip ๐ ๐ช โ๏ธ `async` โ๏ธ ๐ ๐ข. **FastAPI** ๐ โถ๏ธ๏ธ ๐ โฎ๏ธ ๐ , ๐ โฎ๏ธ ๐ ๐. /// ## ๐ โฎ๏ธ `yield` & `try` ๐ฅ ๐ โ๏ธ `try` ๐ซ ๐ โฎ๏ธ `yield`, ๐ ๐ ๐จ ๐ โ ๐ ๐ฎ ๐โ โ๏ธ ๐.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.6K bytes - Viewed (0) -
docs/en/docs/tutorial/first-steps.md
In this case, it is an `async` function. --- You could also define it as a normal function instead of `async def`: {* ../../docs_src/first_steps/tutorial003.py hl[7] *} /// note If you don't know the difference, check the [Async: *"In a hurry?"*](../async.md#in-a-hurry){.internal-link target=_blank}. /// ### Step 5: return the content
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 11:48:16 UTC 2024 - 11.8K bytes - Viewed (0) -
fastapi/security/oauth2.py
flows=cast(OAuthFlowsModel, flows), description=description ) self.scheme_name = scheme_name or self.__class__.__name__ self.auto_error = auto_error async def __call__(self, request: Request) -> Optional[str]: authorization = request.headers.get("Authorization") if not authorization: if self.auto_error: raise HTTPException(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 23 18:30:18 UTC 2024 - 21.1K bytes - Viewed (0)