Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 585 for farm (0.09 sec)

  1. tests/test_regex_deprecated_body.py

    import pytest
    from dirty_equals import IsDict
    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    from typing_extensions import Annotated
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(DeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
                q: Annotated[str | None, Form(regex="^fixedquery$")] = None,
            ):
                if q:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/net/ip.go

    }
    
    // IPv4 returns the IP address (in 16-byte form) of the
    // IPv4 address a.b.c.d.
    func IPv4(a, b, c, d byte) IP {
    	p := make(IP, IPv6len)
    	copy(p, v4InV6Prefix)
    	p[12] = a
    	p[13] = b
    	p[14] = c
    	p[15] = d
    	return p
    }
    
    var v4InV6Prefix = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff}
    
    // IPv4Mask returns the IP mask (in 4-byte form) of the
    // IPv4 mask a.b.c.d.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_files/test_tutorial002_an.py

    
    def test_get_root():
        client = TestClient(app)
        response = client.get("/")
        assert response.status_code == 200, response.text
        assert b"<form" in response.content
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. cmd/signature-v4_test.go

    	now := UTCNow()
    	accessKey := globalActiveCred.AccessKey
    
    	testCases := []struct {
    		form     http.Header
    		expected APIErrorCode
    	}{
    		// (0) It should fail if 'X-Amz-Credential' is missing.
    		{
    			form:     http.Header{},
    			expected: ErrCredMalformed,
    		},
    		// (1) It should fail if the access key is incorrect.
    		{
    			form: http.Header{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/telemetry/proginfo.go

    // version to use for counter files.
    //
    // For programs in the Go toolchain, the program version will be the same as
    // the Go version, and will typically be of the form "go1.2.3", not a semantic
    // version of the form "v1.2.3". Go versions may also include spaces and
    // special characters.
    func ProgramInfo(info *debug.BuildInfo) (goVers, progPath, progVers string) {
    	goVers = info.GoVersion
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:09:33 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/net/http/clone.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname cloneMultipartForm
    func cloneMultipartForm(f *multipart.Form) *multipart.Form {
    	if f == nil {
    		return nil
    	}
    	f2 := &multipart.Form{
    		Value: (map[string][]string)(Header(f.Value).Clone()),
    	}
    	if f.File != nil {
    		m := make(map[string][]*multipart.FileHeader)
    		for k, vv := range f.File {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/security/simple-oauth2.md

    The spec also states that the `username` and `password` must be sent as form data (so, no JSON here).
    
    ### `scope`
    
    The spec also says that the client can send another form field "`scope`".
    
    The form field name is `scope` (in singular), but it is actually a long string with "scopes" separated by spaces.
    
    Each "scope" is just a string (without spaces).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial002_an_py39.py

    
    @needs_py39
    def test_get_root(app: FastAPI):
        client = TestClient(app)
        response = client.get("/")
        assert response.status_code == 200, response.text
        assert b"<form" in response.content
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. hack/golangci-hints.yaml

          path-except: cmd/kubeadm
    
    linters:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    			return
    		}
    	}
    
    	sizeStr := r.Form.Get(peerRESTSize)
    	durationStr := r.Form.Get(peerRESTDuration)
    	concurrentStr := r.Form.Get(peerRESTConcurrent)
    	storageClass := strings.TrimSpace(r.Form.Get(peerRESTStorageClass))
    	customBucket := strings.TrimSpace(r.Form.Get(peerRESTBucket))
    	autotune := r.Form.Get("autotune") == "true"
    	noClear := r.Form.Get("noclear") == "true"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top