- Sort Score
- Result 10 results
- Languages All
Results 541 - 550 of 2,396 for create (0.06 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java
@Override public final SetMultimap<String, String> create(Object... entries) { @SuppressWarnings("unchecked") Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length]; int i = 0; for (Object o : entries) { @SuppressWarnings("unchecked") Entry<String, String> e = (Entry<String, String>) o; array[i++] = e; } return create(array); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3K bytes - Viewed (0) -
tests/test_security_http_basic_optional.py
security = HTTPBasic(auto_error=False) @app.get("/users/me") def read_current_user(credentials: Optional[HTTPBasicCredentials] = Security(security)): if credentials is None: return {"msg": "Create an account first"} return {"username": credentials.username, "password": credentials.password} client = TestClient(app) def test_security_http_basic():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.6K bytes - Viewed (0) -
misc/chrome/gophertool/popup.js
function openURL(url) { chrome.tabs.create({ "url": url }) } function addLinks() { var links = document.getElementsByTagName("a"); for (var i = 0; i < links.length; i++) { var url = links[i].getAttribute("url"); if (url) links[i].addEventListener("click", function () { openURL(this.getAttribute("url")); }); } } window.addEventListener("load", function () { addLinks();
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Sun Oct 21 17:05:21 UTC 2012 - 1020 bytes - Viewed (0) -
tests/test_security_oauth2.py
from pydantic import BaseModel app = FastAPI() reusable_oauth2 = OAuth2( flows={ "password": { "tokenUrl": "token", "scopes": {"read:users": "Read the users", "write:users": "Create users"}, } } ) class User(BaseModel): username: str # Here we use string annotations to test them def get_current_user(oauth_header: "str" = Security(reusable_oauth2)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 10.7K bytes - Viewed (0) -
docs/en/docs/tutorial/background-tasks.md
{* ../../docs_src/background_tasks/tutorial001.py hl[1,13] *} **FastAPI** will create the object of type `BackgroundTasks` for you and pass it as that parameter. ## Create a task function Create a function to be run as the background task. It is just a standard function that can receive parameters.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:22:48 UTC 2024 - 4.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/duplicatehost/AdminDuplicatehostAction.java
// Actually Crud // ------------- @Execute @Secured({ ROLE }) public HtmlResponse create(final CreateForm form) { verifyCrudMode(form.crudMode, CrudMode.CREATE); validate(form, messages -> {}, this::asEditHtml); verifyToken(this::asEditHtml); getDuplicateHost(form).ifPresent(entity -> { try {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 13.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/keymatch/AdminKeymatchAction.java
// Actually Crud // ------------- @Execute @Secured({ ROLE }) public HtmlResponse create(final CreateForm form) { verifyCrudMode(form.crudMode, CrudMode.CREATE); validate(form, messages -> {}, this::asEditHtml); verifyToken(this::asEditHtml); getKeyMatch(form).ifPresent(entity -> { try {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 13.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/PropertiesUtilTest.java
* . */ @Test public void testLoadPropertiesReader() { final InputStreamReader inputStreamReader = ReaderUtil.create(ResourceUtil.getResourceAsStream("org/codelibs/core/io/test.properties"), "UTF-8"); final Properties properties = new Properties(); PropertiesUtil.load(properties, inputStreamReader);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 9.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java
resetContainer(getSubjectGenerator().create((Object[]) createArrayWithNullKey())); } protected void initMultimapWithNullValue() { resetContainer(getSubjectGenerator().create((Object[]) createArrayWithNullValue())); } protected void initMultimapWithNullKeyAndValue() { resetContainer(getSubjectGenerator().create((Object[]) createArrayWithNullKeyAndValue())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6K bytes - Viewed (0) -
tests/test_security_oauth2_optional.py
from pydantic import BaseModel app = FastAPI() reusable_oauth2 = OAuth2( flows={ "password": { "tokenUrl": "token", "scopes": {"read:users": "Read the users", "write:users": "Create users"}, } }, auto_error=False, ) class User(BaseModel): username: str def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 10.8K bytes - Viewed (0)