Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 871 for Dealer (0.16 sec)

  1. tests/test_openapi_examples.py

    @app.get("/header_examples/")
    def header_examples(
        data: Union[str, None] = Header(
            default=None,
            examples=[
                "json_schema_header1",
                "json_schema_header2",
            ],
            openapi_examples={
                "Header One": {
                    "summary": "Header One Summary",
                    "description": "Header One Description",
                    "value": "header1",
                },
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 17K bytes
    - Viewed (0)
  2. src/crypto/tls/tls.go

    	return DialWithDialer(new(net.Dialer), network, addr, config)
    }
    
    // Dialer dials TLS connections given a configuration and a Dialer for the
    // underlying connection.
    type Dialer struct {
    	// NetDialer is the optional dialer to use for the TLS connections'
    	// underlying TCP connections.
    	// A nil NetDialer is equivalent to the net.Dialer zero value.
    	NetDialer *net.Dialer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/net/http/cookie_test.go

    	}
    }
    
    type headerOnlyResponseWriter Header
    
    func (ho headerOnlyResponseWriter) Header() Header {
    	return Header(ho)
    }
    
    func (ho headerOnlyResponseWriter) Write([]byte) (int, error) {
    	panic("NOIMPL")
    }
    
    func (ho headerOnlyResponseWriter) WriteHeader(int) {
    	panic("NOIMPL")
    }
    
    func TestSetCookie(t *testing.T) {
    	m := make(Header)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Headers.kt

              }
              line[0] == ':' -> {
                // Work around empty header names and header names that start with a colon (created by old
                // broken SPDY versions of the response cache).
                addLenient("", line.substring(1)) // Empty header name.
              }
              else -> {
                // No header name.
                addLenient("", line)
              }
            }
          }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. src/net/http/fcgi/child.go

    type response struct {
    	req            *request
    	header         http.Header
    	code           int
    	wroteHeader    bool
    	wroteCGIHeader bool
    	w              *bufWriter
    }
    
    func newResponse(c *child, req *request) *response {
    	return &response{
    		req:    req,
    		header: http.Header{},
    		w:      newWriter(c.conn, typeStdout, req.reqId),
    	}
    }
    
    func (r *response) Header() http.Header {
    	return r.header
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial005.py

        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    def test_token():
        access_token = get_access_token(scope="me")
        response = client.get(
            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "johndoe",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. cmd/object-lambda-handlers.go

    		return code
    	}
    	return -1
    }
    
    func fwdHeadersToS3(h http.Header, w http.ResponseWriter) {
    	const trim = "x-amz-fwd-header-"
    	for k, v := range h {
    		if stringsHasPrefixFold(k, trim) {
    			w.Header()[k[len(trim):]] = v
    		}
    	}
    }
    
    func fwdStatusToAPIError(resp *http.Response) *APIError {
    	if status := resp.Header.Get(xhttp.AmzFwdStatus); status != "" && StatusCode(status) > -1 {
    		apiErr := &APIError{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

        assert response.status_code == 400
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    @needs_py39
    def test_items_bar_with_invalid_token(client: TestClient):
        response = client.get("/items/bar?token=jessica", headers={"X-Token": "invalid"})
        assert response.status_code == 400
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    @needs_py39
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  9. cmd/signature-v2.go

    // doesSignV2Match - Verify authorization header with calculated header in accordance with
    //     - http://docs.aws.amazon.com/AmazonS3/latest/dev/auth-request-sig-v2.html
    // returns true if matches, false otherwise. if error is not nil then it is always false
    
    func validateV2AuthHeader(r *http.Request) (auth.Credentials, APIErrorCode) {
    	var cred auth.Credentials
    	v2Auth := r.Header.Get(xhttp.Authorization)
    	if v2Auth == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/net/http/roundtrip_js.go

    	opt.Set("credentials", "same-origin")
    	if h := req.Header.Get(jsFetchCreds); h != "" {
    		opt.Set("credentials", h)
    		req.Header.Del(jsFetchCreds)
    	}
    	if h := req.Header.Get(jsFetchMode); h != "" {
    		opt.Set("mode", h)
    		req.Header.Del(jsFetchMode)
    	}
    	if h := req.Header.Get(jsFetchRedirect); h != "" {
    		opt.Set("redirect", h)
    		req.Header.Del(jsFetchRedirect)
    	}
    	if !ac.IsUndefined() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top