Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,183 for headerv3 (0.13 sec)

  1. tests/integration/pilot/common/routing.go

    		opts.To = nil
    	}
    	// allows setting the target indirectly via the host header
    	fqdnHostHeader := func(src echo.Caller, opts *echo.CallOptions) {
    		if opts.HTTP.Headers == nil {
    			opts.HTTP.Headers = make(http.Header)
    		}
    		opts.HTTP.Headers.Set(headers.Host, opts.To.Config().ClusterLocalFQDN())
    		noTarget(src, opts)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  2. src/mime/multipart/multipart_test.go

    		t.Error("Expected part1")
    		return
    	}
    	if x := part.Header.Get("Header1"); x != "value1" {
    		t.Errorf("part.Header.Get(%q) = %q, want %q", "Header1", x, "value1")
    	}
    	if x := part.Header.Get("foo-bar"); x != "baz" {
    		t.Errorf("part.Header.Get(%q) = %q, want %q", "foo-bar", x, "baz")
    	}
    	if x := part.Header.Get("Foo-Bar"); x != "baz" {
    		t.Errorf("part.Header.Get(%q) = %q, want %q", "Foo-Bar", x, "baz")
    	}
    	buf.Reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 30.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_header_params/test_tutorial001_an.py

    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"User-Agent": "testclient"}),
            ("/items", {"X-Header": "notvalid"}, 200, {"User-Agent": "testclient"}),
            ("/items", {"User-Agent": "FastAPI test"}, 200, {"User-Agent": "FastAPI test"}),
        ],
    )
    def test(path, headers, expected_status, expected_response):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. cmd/handler-utils.go

    		return map[string]string{}
    	}
    	return map[string]string{
    		"requestId":      w.Header().Get(xhttp.AmzRequestID),
    		"nodeId":         w.Header().Get(xhttp.AmzRequestHostID),
    		"content-length": w.Header().Get(xhttp.ContentLength),
    		// Add more fields here.
    	}
    }
    
    // Trims away `aws-chunked` from the content-encoding header if present.
    // Streaming signature clients can have custom content-encoding such as
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/cors.go

    		w.Header().Set("Access-Control-Expose-Headers", exposeHeadersResponseHeader)
    		w.Header().Set("Access-Control-Allow-Credentials", allowCredentials)
    
    		// Stop here if its a preflight OPTIONS request
    		if req.Method == "OPTIONS" {
    			w.WriteHeader(http.StatusNoContent)
    			return
    		}
    
    		// Dispatch to the next handler
    		handler.ServeHTTP(w, req)
    	})
    }
    
    // isOriginAllowed returns true if the given origin header in the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 15 13:59:10 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

          transparentGzip = true
          requestBuilder.header("Accept-Encoding", "gzip")
        }
    
        val cookies = cookieJar.loadForRequest(userRequest.url)
        if (cookies.isNotEmpty()) {
          requestBuilder.header("Cookie", cookieHeader(cookies))
        }
    
        if (userRequest.header("User-Agent") == null) {
          requestBuilder.header("User-Agent", USER_AGENT)
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativePreCompiledHeaderIntegrationTest.groovy

            output.contains("The source file hello.${app.sourceExtension} includes the header common.h but it is not the first declared header, so the pre-compiled header will not be used.")
        }
    
        @ToBeFixedForConfigurationCache
        def "produces compiler error when specified header is missing" () {
            given:
            app.getLibraryHeader().writeToDir(file("src/hello"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  8. pilot/pkg/config/kube/gateway/testdata/benchmark-httproute.yaml

      - kind: Mesh
        name: istio
      hostnames: ["a.domain.example", "b.domain.example"]
      rules:
      - matches:
        - path:
            type: PathPrefix
            value: /foo
          headers:
          - name: my-header
            value: some-value
            type: Exact
        backendRefs:
        - name: svc1
          port: 80
      - matches:
        - path:
            type: RegularExpression
            value: /foo((\/).*)?
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 18 22:43:39 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. samples/bookinfo/src/productpage/productpage.py

    
    def getForwardHeaders(request):
        headers = {}
    
        # x-b3-*** headers can be populated using the OpenTelemetry span
        ctx = propagator.extract(carrier={k.lower(): v for k, v in request.headers})
        propagator.inject(headers, ctx)
    
        # We handle other (non x-b3-***) headers manually
        if 'user' in session:
            headers['end-user'] = session['user']
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 14.6K bytes
    - Viewed (1)
  10. docs/recipes.md

    When writing request headers, use `header(name, value)` to set the only occurrence of `name` to `value`. If there are existing values, they will be removed before the new value is added. Use `addHeader(name, value)` to add a header without removing the headers already present.
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
Back to top