- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,225 for headerIDs (6.95 sec)
-
tests/integration/security/jwt_test.go
opts.HTTP.Path = "/expired-token-cors-preflight-request-allowed" opts.HTTP.Method = "OPTIONS" opts.HTTP.Headers = headers.New(). WithAuthz(jwt.TokenExpired). With(headers.AccessControlRequestMethod, "POST"). With(headers.Origin, "https://istio.io"). Build() opts.Check = check.And( check.OK(), check.ReachedTargetClusters(t)) }, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 25.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
} } return null } internal fun Headers.Builder.commonAdd( name: String, value: String, ) = apply { headersCheckName(name) headersCheckValue(value, name) commonAddLenient(name, value) } internal fun Headers.Builder.commonAddAll(headers: Headers) = apply { for (i in 0 until headers.size) { commonAddLenient(headers.name(i), headers.value(i)) } }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
tests/integration/security/policy_attachment_only/jwt_gateway_test.go
opts.HTTP.Path = "/" opts.HTTP.Headers = headers.New(). WithHost(fmt.Sprintf("example.%s.com", to.ServiceName())). Build() opts.Check = check.Status(http.StatusForbidden) }, }, { name: "allow with sub-1 token", customizeCall: func(opts *echo.CallOptions, to echo.Target) { opts.HTTP.Path = "/" opts.HTTP.Headers = headers.New().
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 9.7K bytes - Viewed (0) -
tests/test_tutorial/test_cors/test_tutorial001.py
) assert response.headers["access-control-allow-headers"] == "X-Example" # Test standard response headers = {"Origin": "https://localhost.tiangolo.com"} response = client.get("/", headers=headers) assert response.status_code == 200, response.text assert response.json() == {"message": "Hello World"} assert ( response.headers["access-control-allow-origin"]
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Jul 09 18:06:12 UTC 2020 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers.go
// round tripper to add Request headers before delegation. Implements // the go standard library "http.RoundTripper" interface. type CommandHeaderRoundTripper struct { Delegate http.RoundTripper Headers map[string]string } // CommandHeaderRoundTripper adds Request headers before delegating to standard // round tripper. These headers are kubectl command headers which // detail the kubectl command. See SIG CLI KEP 859:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 3.2K bytes - Viewed (0) -
pkg/bootstrap/platform/aws.go
// Metadata returned by the AWS Environment is taken link-local address running on each node. func NewAWS(ipv6 bool) Environment { headers := requestHeaders(ipv6) return &awsEnv{ region: getRegion(ipv6, headers), availabilityZone: getAvailabilityZone(ipv6, headers), instanceID: getInstanceID(ipv6, headers), } } func requestHeaders(ipv6 bool) map[string]string { // try to get token first, if it fails, fallback to IMDSv1
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 09 03:52:10 UTC 2023 - 4.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
/** Removes all headers named [name] on this builder. */ open fun removeHeader(name: String) = commonRemoveHeader(name) /** Removes all headers on this builder and adds [headers]. */ open fun headers(headers: Headers) = commonHeaders(headers) /** * Sets this request's `Cache-Control` header, replacing any cache control headers already
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 06 04:17:44 UTC 2024 - 10.5K bytes - Viewed (0) -
pkg/probe/http/request.go
// User-Agent header was not defined, set it headers.Set("User-Agent", userAgent(userAgentFragment)) } if _, ok := headers["Accept"]; !ok { // Accept header was not defined. accept all headers.Set("Accept", "*/*") } else if headers.Get("Accept") == "" { // Accept header was overridden but is empty. removing headers.Del("Accept") } req.Header = headers req.Host = headers.Get("Host") return req, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 07:39:55 UTC 2023 - 3.3K bytes - Viewed (0) -
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) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
): Builder = chunkedBody(Buffer().writeUtf8(body), maxChunkSize) /** Sets the headers and returns this. */ fun headers(headers: Headers) = apply { this.headers = headers.newBuilder() } /** Sets the trailers and returns this. */ fun trailers(trailers: Headers) = apply { this.trailers = trailers.newBuilder() }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 13.3K bytes - Viewed (0)