- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,138 for _data (0.13 sec)
-
docs_src/security/tutorial004_py310.py
return current_user @app.post("/token") async def login_for_access_token( form_data: OAuth2PasswordRequestForm = Depends(), ) -> Token: user = authenticate_user(fake_users_db, form_data.username, form_data.password) if not user: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 4K bytes - Viewed (0) -
fastapi/security/oauth2.py
@app.post("/login") def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]): data = {} data["scopes"] = [] for scope in form_data.scopes: data["scopes"].append(scope) if form_data.client_id: data["client_id"] = form_data.client_id if form_data.client_secret: data["client_secret"] = form_data.client_secret return data ```
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 21.1K bytes - Viewed (1) -
tests/test_response_model_as_return_annotation.py
@app.get( "/response_model-no_annotation-return_dict_with_extra_data", response_model=User ) def response_model_no_annotation_return_dict_with_extra_data(): return {"name": "John", "surname": "Doe", "password_hash": "secret"} @app.get( "/response_model-no_annotation-return_submodel_with_extra_data", response_model=User ) def response_model_no_annotation_return_submodel_with_extra_data():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Aug 14 09:49:57 GMT 2023 - 47.7K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py
item_data = response.json() assert item["title"] == item_data["title"] assert item["description"] == item_data["description"] assert "id" in item_data assert "owner_id" in item_data response = client.get("/users/1") assert response.status_code == 200, response.text user_data = response.json() item_to_check = [it for it in user_data["items"] if it["id"] == item_data["id"]][0]
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
char scratch[64 /* big enough for test_data and more_test_data */] = {0}; StringPiece result; status = read_file->Read(0, test_data.size() + more_test_data.size(), &result, scratch); EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK); EXPECT_EQ(test_data + more_test_data, result); EXPECT_EQ( read_file->Read(test_data.size(), more_test_data.size(), &result, scratch) .code(),
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt
assertThat(frameLog(false, 3, 100, TYPE_HEADERS, FLAG_END_HEADERS)) .isEqualTo(">> 0x00000003 100 HEADERS END_HEADERS") assertThat(frameLog(false, 3, 0, TYPE_DATA, FLAG_END_STREAM)) .isEqualTo(">> 0x00000003 0 DATA END_STREAM") assertThat(frameLog(true, 0, 15, TYPE_SETTINGS, FLAG_NONE)) .isEqualTo("<< 0x00000000 15 SETTINGS ")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/WinError.java
public static final int ERROR_BAD_PIPE = 230; public static final int ERROR_PIPE_BUSY = 231; public static final int ERROR_NO_DATA = 232; public static final int ERROR_PIPE_NOT_CONNECTED = 233; public static final int ERROR_MORE_DATA = 234; public static final int ERROR_NO_BROWSER_SERVERS_FOUND = 6118; static final int[] WINERR_CODES = { ERROR_SUCCESS, ERROR_ACCESS_DENIED,
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTransformTest.java
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Jun 28 16:27:15 GMT 2018 - 1.9K bytes - Viewed (0) -
docs_src/security/tutorial004_an_py310.py
return current_user @app.post("/token") async def login_for_access_token( form_data: Annotated[OAuth2PasswordRequestForm, Depends()], ) -> Token: user = authenticate_user(fake_users_db, form_data.username, form_data.password) if not user: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformTest.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 28 16:27:15 GMT 2018 - 1.9K bytes - Viewed (0)