Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for NoBody (0.17 sec)

  1. src/net/http/http.go

    	}
    	return string(b)
    }
    
    // NoBody is an [io.ReadCloser] with no bytes. Read always returns EOF
    // and Close always returns nil. It can be used in an outgoing client
    // request to explicitly signal that a request has zero bytes.
    // An alternative, however, is to simply set [Request.Body] to nil.
    var NoBody = noBody{}
    
    type noBody struct{}
    
    func (noBody) Read([]byte) (int, error)         { return 0, io.EOF }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/net/http/httputil/dump_test.go

    		},
    		WantDump: "POST /v2/api/?login HTTP/1.1\r\n" +
    			"Host: passport.myhost.com\r\n\r\n",
    	},
    
    	// Issue 18506: make drainBody recognize NoBody. Otherwise
    	// this was turning into a chunked request.
    	{
    		Req: mustNewRequest("POST", "http://example.com/foo", http.NoBody),
    		WantDumpOut: "POST /foo HTTP/1.1\r\n" +
    			"Host: example.com\r\n" +
    			"User-Agent: Go-http-client/1.1\r\n" +
    			"Content-Length: 0\r\n" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:07 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  3. docs/ftp/README.md

    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls runner/
    229 Entering Extended Passive Mode (|||39155|)
    150 Opening ASCII mode data connection for file list
    drwxrwxrwx 1 nobody nobody            0 Jan  1 00:00 chunkdocs/
    drwxrwxrwx 1 nobody nobody            0 Jan  1 00:00 testdir/
    ...
    ```
    
    Following example shows how to list an object and download it locally via `ftp` client:
    
    ```
    ftp> ls runner/chunkdocs/metadata
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 06:41:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. docker/iptables.yaml

        - libmnl
        - libgcc
    archs:
      - x86_64
      - aarch64
    paths:
    - path: /run
      type: directory
      permissions: 0o755
    accounts:
      users:
        - username: nonroot
          uid: 65532
        - username: nobody
          uid: 65534
      run-as: 65532
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 17:24:41 UTC 2024
    - 541 bytes
    - Viewed (0)
  5. pkg/apis/flowcontrol/internalbootstrap/default-internal.go

    // value is the `*FlowSchema`.  Nobody should mutate anything
    // reachable from this map.
    var MandatoryFlowSchemas = internalizeFSes(bootstrap.MandatoryFlowSchemas)
    
    // MandatoryPriorityLevelConfigurations holds the untyped renditions of the
    // mandatory priority level configuration objects.  In this map the
    // key is the object's name and the value is the
    // `*PriorityLevelConfiguration`.  Nobody should mutate anything
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. src/net/http/httputil/dump.go

    // to make the returned ReadClosers have identical error-matching behavior.
    func drainBody(b io.ReadCloser) (r1, r2 io.ReadCloser, err error) {
    	if b == nil || b == http.NoBody {
    		// No copying needed. Preserve the magic sentinel meaning of NoBody.
    		return http.NoBody, http.NoBody, nil
    	}
    	var buf bytes.Buffer
    	if _, err = buf.ReadFrom(b); err != nil {
    		return nil, b, err
    	}
    	if err = b.Close(); err != nil {
    		return nil, b, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/build_buildvcs_auto.txt

    [short] skip
    [!git] skip
    
    cd sub
    exec git init .
    exec git config user.name 'Nameless Gopher'
    exec git config user.email 'nobody@golang.org'
    exec git add sub.go
    exec git commit -m 'initial state'
    cd ..
    
    exec git init
    exec git config user.name 'Nameless Gopher'
    exec git config user.email 'nobody@golang.org'
    exec git submodule add ./sub
    exec git add go.mod example.go
    exec git commit -m 'initial state'
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:32 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. src/syscall/exec_linux_test.go

    	if userns {
    		cmd.SysProcAttr.Cloneflags = syscall.CLONE_NEWUSER
    		const nobody = 65534
    		uid := os.Getuid()
    		gid := os.Getgid()
    		cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{
    			ContainerID: int(nobody),
    			HostID:      uid,
    			Size:        int(1),
    		}}
    		cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{
    			ContainerID: int(nobody),
    			HostID:      gid,
    			Size:        int(1),
    		}}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/dep-man/02-declaring-dependency-versions/rich_versions.adoc

    |
    | [1.0, 2.0[
    | 1.5
    |
    | Any version between `1.0` and `2.0`, `1.5` if nobody else cares. An upgrade to `2.4` is accepted. +
    🔒
    
    | Tested with `1.5`, but follows semantic versioning.
    | [1.0, 2.0[
    |
    | 1.5
    |
    | Any version between `1.0` and `2.0` (exclusive), `1.5` if nobody else cares. +
    Overwrites versions from transitive dependencies. +
    🔒
    
    | Same as above, with `1.4` known broken.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. src/cmd/go/internal/web/http.go

    			StatusCode: http.StatusNotFound,
    			Body:       http.NoBody,
    			fileErr:    err,
    		}, nil
    	}
    
    	if os.IsPermission(err) {
    		return &Response{
    			URL:        u.Redacted(),
    			Status:     http.StatusText(http.StatusForbidden),
    			StatusCode: http.StatusForbidden,
    			Body:       http.NoBody,
    			fileErr:    err,
    		}, nil
    	}
    
    	if err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top