- Sort Score
- Result 10 results
- Languages All
Results 3081 - 3090 of 3,796 for GET (0.02 sec)
-
cmd/jwt_test.go
if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil { t.Fatal(err) } creds := globalActiveCred token, err := getTokenString(creds.AccessKey, creds.SecretKey) if err != nil { t.Fatalf("unable get token %s", err) } testCases := []struct { req *http.Request expectedErr error }{ // Set valid authorization header. { req: &http.Request{ Header: http.Header{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 22 07:04:48 UTC 2024 - 4.4K bytes - Viewed (0) -
misc/linkcheck/linkcheck.go
for url := range urlq { if err := doCrawl(url); err != nil { addProblem(url, err.Error()) } } } func doCrawl(url string) error { defer wg.Done() req, err := http.NewRequest("GET", url, nil) if err != nil { return err } res, err := http.DefaultTransport.RoundTrip(req) if err != nil { return err } // Handle redirects. if res.StatusCode/100 == 3 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 3.9K bytes - Viewed (0) -
api/maven-api-plugin/src/main/mdo/lifecycle.mdo
</field> </fields> <codeSegments> <codeSegment> <version>2.0.0+</version> <code><![CDATA[ /** * Get the effective ID of this phase, e.g., * {@code generate-sources} or {@code after:integration-test[1000]}. * * @return String */ public String getEffectiveId() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Thu Aug 29 05:48:54 UTC 2024 - 5.6K bytes - Viewed (0) -
docs/de/docs/advanced/async-tests.md
Dann können wir einen `AsyncClient` mit der App erstellen und mit `await` asynchrone Requests an ihn senden. {* ../../docs_src/async_tests/test_main.py hl[9:12] *} Das ist das Äquivalent zu: ```Python response = client.get('/') ``` ... welches wir verwendet haben, um unsere Requests mit dem `TestClient` zu machen. /// tip | "Tipp" Beachten Sie, dass wir async/await mit dem neuen `AsyncClient` verwenden – der Request ist asynchron.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:34:47 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/en/docs/advanced/async-tests.md
/// Then we can create an `AsyncClient` with the app, and send async requests to it, using `await`. {* ../../docs_src/async_tests/test_main.py hl[9:12] *} This is the equivalent to: ```Python 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. /// /// warning
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:43:29 UTC 2024 - 3.8K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py
assert response.json() == { "file_size": 14, "token": "foo", "fileb_content_type": "text/plain", } def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 9.8K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient_test.go
testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { assert.Equal(t, true, false) // if we get here, it's an autofail })) defer func() { testServer.Close() }() cniC := fakeCNIEventClient(testServer.URL) err := PushCNIEvent(cniC, nil, nil, testPod, testNS) assert.Error(t, err)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 02 18:48:50 UTC 2024 - 4.2K bytes - Viewed (0) -
native-image-tests/src/main/kotlin/okhttp3/RunTests.kt
*/ fun treeListener(): TestExecutionListener { val colorPalette = Class.forName("org.junit.platform.console.tasks.ColorPalette").getField("DEFAULT").apply { isAccessible = true }.get(null) return Class.forName( "org.junit.platform.console.tasks.TreePrintingListener", ).declaredConstructors.first() .apply { isAccessible = true }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt
idleAtNanos = defaultConnectionIdleAtNanos, ) var retry: FakePlan? = null var retryTaken = false var yieldBeforePlanReturns = false override val isReady: Boolean get() = connectState == ConnectState.TLS_CONNECTED var tcpConnectDelayNanos = 0L var tcpConnectThrowable: Throwable? = null var yieldBeforeTcpConnectReturns = false var connectTcpNextPlan: FakePlan? = null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 24 04:40:49 UTC 2024 - 6.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt
/** Returns total number of connections in the pool. */ fun connectionCount(): Int = delegate.connectionCount() internal val connectionListener: ConnectionListener get() = delegate.connectionListener /** Close and remove all idle connections in the pool. */ fun evictAll() { delegate.evictAll() } /** * Sets a policy that applies to [address].
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 03 20:39:41 UTC 2024 - 5.6K bytes - Viewed (0)