Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 112 for content_es (0.12 sec)

  1. src/net/http/serve_test.go

    		go func() {
    			defer wg.Done()
    
    			contentLen := fmt.Sprintf("Content-Length: %d", test.contentLength)
    			if test.chunked {
    				contentLen = "Transfer-Encoding: chunked"
    			}
    			_, err := fmt.Fprintf(conn, "POST /?readbody=%v HTTP/1.1\r\n"+
    				"Connection: close\r\n"+
    				"%s\r\n"+
    				"Expect: %s\r\nHost: foo\r\n\r\n",
    				test.readBody, contentLen, test.expectation)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/crypto/x509/x509.go

    	for _, e := range extensions {
    		if e.Id.Equal(oid) {
    			return true
    		}
    	}
    	return false
    }
    
    // marshalSANs marshals a list of addresses into a the contents of an X.509
    // SubjectAlternativeName extension.
    func marshalSANs(dnsNames, emailAddresses []string, ipAddresses []net.IP, uris []*url.URL) (derBytes []byte, err error) {
    	var rawValues []asn1.RawValue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    // the hash digest instead of creating a new one for a given chunk and finalizing it.
    //
    //	// Assume hashfd and addr are already configured using the setup process.
    //	hash := os.NewFile(hashfd, "sha1")
    //	// Hash the contents of a file.
    //	f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz")
    //	b := make([]byte, 4096)
    //	for {
    //	    n, err := f.Read(b)
    //	    if err == io.EOF {
    //	        break
    //	    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  4. src/os/read_test.go

    	t.Parallel()
    
    	filename := "rumpelstilzchen"
    	contents, err := ReadFile(filename)
    	if err == nil {
    		t.Fatalf("ReadFile %s: error expected, none found", filename)
    	}
    
    	filename = "read_test.go"
    	contents, err = ReadFile(filename)
    	if err != nil {
    		t.Fatalf("ReadFile %s: %v", filename, err)
    	}
    
    	checkNamedSize(t, filename, int64(len(contents)))
    }
    
    func TestWriteFile(t *testing.T) {
    	t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. src/os/dir.go

    	"internal/filepathlite"
    	"io"
    	"io/fs"
    	"slices"
    )
    
    type readdirMode int
    
    const (
    	readdirName readdirMode = iota
    	readdirDirEntry
    	readdirFileInfo
    )
    
    // Readdir reads the contents of the directory associated with file and
    // returns a slice of up to n [FileInfo] values, as would be returned
    // by [Lstat], in directory order. Subsequent calls on the same file will yield
    // further FileInfos.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. src/net/sendfile_linux.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"internal/poll"
    	"io"
    	"os"
    )
    
    const supportsSendfile = true
    
    // sendFile copies the contents of r to c using the sendfile
    // system call to minimize copies.
    //
    // if handled == true, sendFile returns the number (potentially zero) of bytes
    // copied and any non-EOF error.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. src/net/sendfile_windows.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"internal/poll"
    	"io"
    	"os"
    	"syscall"
    )
    
    const supportsSendfile = true
    
    // sendFile copies the contents of r to c using the TransmitFile
    // system call to minimize copies.
    //
    // if handled == true, sendFile returns the number of bytes copied and any
    // non-EOF error.
    //
    // if handled == false, sendFile performed no work.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. src/cmd/cover/cfg_test.go

    import (
    	"cmd/internal/cov/covcmd"
    	"encoding/json"
    	"fmt"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    func writeFile(t *testing.T, path string, contents []byte) {
    	if err := os.WriteFile(path, contents, 0666); err != nil {
    		t.Fatalf("os.WriteFile(%s) failed: %v", path, err)
    	}
    }
    
    func writePkgConfig(t *testing.T, outdir, tag, ppath, pname string, gran string, mpath string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go

    	noteTypeGNUBuildID = 3
    )
    
    // elfNote is the payload of a Note Section in an ELF file.
    type elfNote struct {
    	Name string // Contents of the "name" field, omitting the trailing zero byte.
    	Desc []byte // Contents of the "desc" field.
    	Type uint32 // Contents of the "type" field.
    }
    
    // parseNotes returns the notes from a SHT_NOTE section or PT_NOTE segment.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. src/testing/fstest/testfs.go

    // As a special case, if no expected files are listed, fsys must be empty.
    // Otherwise, fsys must contain at least the listed files; it can also contain others.
    // The contents of fsys must not change concurrently with TestFS.
    //
    // If TestFS finds any misbehaviors, it returns either the first error or a
    // list of errors. Use [errors.Is] or [errors.As] to inspect.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top