Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for req_ext (0.29 sec)

  1. okhttp/src/test/java/okhttp3/CallTest.kt

          client.newBuilder()
            .addInterceptor(Interceptor { throw IOException() })
            .build()
        val request = Request.Builder().url(server.url("/")).build()
        c.newCall(request).enqueue(callback)
        val response = callback.await(request.url)
        assertThat(response.request).isEqualTo(request)
      }
    
      @Test
      fun reusedSinksGetIndependentTimeoutInstances() {
        server.enqueue(MockResponse())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  2. cmd/server_test.go

    	// execute the HTTP request for object upload.
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	objectName2 := "testObject2"
    	// Unlike the actual PUT object request, the request to Copy Object doesn't contain request body,
    	// empty body with the "X-Amz-Copy-Source" header pointing to the object to copies it in the backend.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

          ),
        )
      }
    
      @Test
      fun getHasCorrectResponse() {
        val request = Request(server.url("/abc"))
    
        val response = testBasicCachingRules(request)
    
        assertThat(response.request.url).isEqualTo(request.url)
        assertThat(response.cacheResponse!!.request.url).isEqualTo(request.url)
      }
    
      @Test
      fun postWithOverrideResponse() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        // No authorization header for the first request...
        var request = server.takeRequest()
        assertThat(request.headers["Authorization"]).isNull()
    
        // ...but the three requests that follow requests include an authorization header.
        for (i in 0..2) {
          request = server.takeRequest()
          assertThat(request.requestLine).isEqualTo("GET / HTTP/1.1")
          assertThat(request.headers["Authorization"])
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  5. src/net/http/serve_test.go

    	}
    
    	reqNum := 0
    	ch := make(chan *Request)
    	servech := make(chan error)
    	listener := &oneConnListener{conn}
    	handler := func(res ResponseWriter, req *Request) {
    		reqNum++
    		ch <- req
    	}
    
    	go func() {
    		servech <- Serve(listener, HandlerFunc(handler))
    	}()
    
    	var req *Request
    	req = <-ch
    	if req == nil {
    		t.Fatal("Got nil first request.")
    	}
    	if req.Method != "POST" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  6. src/net/http/server.go

    // be possible to read from the [Request.Body] after writing to the
    // [ResponseWriter]. Cautious handlers should read the [Request.Body]
    // first, and then reply.
    //
    // Except for reading the body, handlers should not modify the
    // provided Request.
    //
    // If ServeHTTP panics, the server (the caller of ServeHTTP) assumes
    // that the effect of the panic was isolated to the active request.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    		},
    	}
    
    	// string to represent V2 signed HTTP request.
    	reqV2Str := "V2 Signed HTTP request"
    	// string to represent V4 signed HTTP request.
    	reqV4Str := "V4 Signed HTTP request"
    	// Collection of HTTP request and ResponseRecorder and request type string.
    	type inputReqRec struct {
    		req     *http.Request
    		rec     *httptest.ResponseRecorder
    		reqType string
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    			}
    		}
    
    		srvWG.Wait()
    		ts.Close()
    	}
    }
    
    // A cancelTest is a test of request cancellation.
    type cancelTest struct {
    	mode     testMode
    	newReq   func(req *Request) *Request       // prepare the request to cancel
    	cancel   func(tr *Transport, req *Request) // cancel the request
    	checkErr func(when string, err error)      // verify the expected error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  9. istioctl/pkg/authz/testdata/configdump.yaml

                 },
                 "custom_tags": [
                  {
                   "tag": "istio.authorization.dry_run.allow_policy.name",
                   "metadata": {
                    "kind": {
                     "request": {}
                    },
                    "metadata_key": {
                     "key": "envoy.filters.http.rbac",
                     "path": [
                      {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 14:20:23 UTC 2023
    - 206.7K bytes
    - Viewed (1)
  10. api/openapi-spec/v3/apis__flowcontrol.apiserver.k8s.io__v1_openapi.json

    testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.",...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 231.7K bytes
    - Viewed (0)
Back to top