Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 333 for Cookies (0.51 sec)

  1. docs/ja/docs/tutorial/header-params.md

    # ヘッダーのパラメータ
    
    ヘッダーのパラメータは、`Query`や`Path`、`Cookie`のパラメータを定義するのと同じように定義できます。
    
    ## `Header`をインポート
    
    まず、`Header`をインポートします:
    
    ```Python hl_lines="3"
    {!../../../docs_src/header_params/tutorial001.py!}
    ```
    
    ## `Header`のパラメータの宣言
    
    次に、`Path`や`Query`、`Cookie`と同じ構造を用いてヘッダーのパラメータを宣言します。
    
    最初の値がデフォルト値で、追加の検証パラメータや注釈パラメータをすべて渡すことができます。
    
    ```Python hl_lines="9"
    {!../../../docs_src/header_params/tutorial001.py!}
    ```
    
    !!! note "技術詳細"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Oct 17 13:55:39 UTC 2020
    - 3.8K bytes
    - Viewed (0)
  2. pilot/pkg/networking/util/util_test.go

    						Cookie: &httpv3.Cookie{
    							Path: "/",
    							Name: "test-cookie",
    						},
    					}),
    				},
    			},
    		},
    		{
    			name: "service with cookie path",
    			service: &model.Service{
    				Attributes: model.ServiceAttributes{
    					Labels: map[string]string{features.PersistentSessionLabel: "test-cookie:/path"},
    				},
    			},
    			expectedconfig: &statefulsession.StatefulSession{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  3. fastapi/exceptions.py

        from typing import Annotated
    
        from fastapi import (
            Cookie,
            FastAPI,
            WebSocket,
            WebSocketException,
            status,
        )
    
        app = FastAPI()
    
        @app.websocket("/items/{item_id}/ws")
        async def websocket_endpoint(
            *,
            websocket: WebSocket,
            session: Annotated[str | None, Cookie()] = None,
            item_id: str,
        ):
            if session is None:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. api/go1.23.txt

    pkg net, type ListenConfig struct, KeepAliveConfig KeepAliveConfig #62254
    pkg net/http, func ParseCookie(string) ([]*Cookie, error) #66008
    pkg net/http, func ParseSetCookie(string) (*Cookie, error) #66008
    pkg net/http, method (*Request) CookiesNamed(string) []*Cookie #61472
    pkg net/http, type Cookie struct, Partitioned bool #62490
    pkg net/http, type Cookie struct, Quoted bool #46443
    pkg net/http, type Request struct, Pattern string #66405
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. src/net/http/request_test.go

    func TestRequestCookiesByName(t *testing.T) {
    	tests := []struct {
    		in     []*Cookie
    		filter string
    		want   []*Cookie
    	}{
    		{
    			in: []*Cookie{
    				{Name: "foo", Value: "foo-1"},
    				{Name: "bar", Value: "bar"},
    			},
    			filter: "foo",
    			want:   []*Cookie{{Name: "foo", Value: "foo-1"}},
    		},
    		{
    			in: []*Cookie{
    				{Name: "foo", Value: "foo-1"},
    				{Name: "foo", Value: "foo-2"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  6. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientConfigurer.java

    import org.apache.http.impl.conn.SystemDefaultRoutePlanner;
    import org.apache.http.impl.cookie.DefaultCookieSpecProvider;
    import org.apache.http.impl.cookie.IgnoreSpecProvider;
    import org.apache.http.impl.cookie.NetscapeDraftSpecProvider;
    import org.apache.http.impl.cookie.RFC6265CookieSpecProvider;
    import org.apache.http.protocol.HttpContext;
    import org.apache.http.protocol.HttpCoreContext;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  7. src/internal/poll/fd_wasip1.go

    // We treat this like an ordinary system call rather than a call
    // that tries to fill the buffer.
    func (fd *FD) ReadDir(buf []byte, cookie syscall.Dircookie) (int, error) {
    	if err := fd.incref(); err != nil {
    		return 0, err
    	}
    	defer fd.decref()
    	for {
    		n, err := syscall.ReadDir(fd.Sysfd, buf, cookie)
    		if err != nil {
    			n = 0
    			if err == syscall.EAGAIN && fd.pd.pollable() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. tests/testdata/config/virtual-service-all.yaml

      hosts:
      - service3.default.svc.cluster.local
      - uk.bookinfo.com
      - eu.bookinfo.com
      gateways:
      - my-gateway
      - mesh # applies to all the sidecars in the mesh
      http:
      - match:
        - headers:
            cookie:
              regex: "^(.*?;)?(user=dev-123)(;.*)?"
        route:
        - destination:
            port:
              number: 81
            host: service3.default.svc.cluster.local
      - match:
        - uri:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 19 04:56:49 UTC 2019
    - 790 bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

        val headers =
          Headers.Builder()
            .add("content-length", "99")
            .add("authorization", "peanutbutter")
            .add("proxy-authorization", "chocolate")
            .add("cookie", "drink=coffee")
            .add("set-cookie", "accessory=sugar")
            .add("user-agent", "OkHttp")
            .build()
        val request =
          Request(
            "https://square.com".toHttpUrl(),
            headers,
          )
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. tests/testdata/config/destination-rule-all.yaml

          labels:
            version: v1
        - name: v2
          labels:
            version: v2
          trafficPolicy:
            loadBalancer:
              consistentHash:
                httpCookie:
                  name: Cookie
                  ttl: 30s
                minimumRingSize: 42
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 26 15:06:45 UTC 2020
    - 1.3K bytes
    - Viewed (0)
Back to top