- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 73 for NoBody (0.12 sec)
-
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) -
src/cmd/go/internal/auth/netrc_test.go
login justlogin machine test.host login user2 password pwd2 machine oneline login user3 password pwd3 machine ignore.host macdef ignore login nobody password nothing machine hasmacro.too macdef ignore-next-lines login user4 password pwd4 login nobody password nothing default login anonymous password ******@****.*** machine after.default login oops password too-late-in-file `
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 21:11:28 UTC 2019 - 1K bytes - Viewed (0) -
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) -
cmd/url_test.go
package cmd import ( "net/http" "testing" ) func BenchmarkURLQueryForm(b *testing.B) { req, err := http.NewRequest(http.MethodGet, "http://localhost:9000/bucket/name?uploadId=upload&partNumber=1", http.NoBody) if err != nil { b.Fatal(err) } // benchmark utility which helps obtain number of allocations and bytes allocated per ops. b.ReportAllocs()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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)