Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for urlpkg (0.85 sec)

  1. src/cmd/go/internal/web/http.go

    		res.Body = hookCloser{
    			ReadCloser: body,
    			afterClose: release,
    		}
    		return res, err
    	}
    
    	var (
    		fetched *urlpkg.URL
    		res     *http.Response
    		err     error
    	)
    	if url.Scheme == "" || url.Scheme == "https" {
    		secure := new(urlpkg.URL)
    		*secure = *url
    		secure.Scheme = "https"
    
    		res, err = fetch(secure)
    		if err == nil {
    			fetched = secure
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/vcs/vcs.go

    		return "", err
    	}
    	out := strings.TrimSpace(string(outb))
    
    	var repoURL *urlpkg.URL
    	if m := scpSyntaxRe.FindStringSubmatch(out); m != nil {
    		// Match SCP-like syntax and convert it to a URL.
    		// Eg, "******@****.***:user/repo" becomes
    		// "ssh://******@****.***/user/repo".
    		repoURL = &urlpkg.URL{
    			Scheme: "ssh",
    			User:   urlpkg.User(m[1]),
    			Host:   m[2],
    			Path:   m[3],
    		}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/bug/bug.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package bug implements the “go bug” command.
    package bug
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"io"
    	urlpkg "net/url"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"regexp"
    	"runtime"
    	"strings"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/envcmd"
    	"cmd/go/internal/web"
    	"cmd/go/internal/work"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. src/net/http/request.go

    	"bufio"
    	"bytes"
    	"context"
    	"crypto/tls"
    	"encoding/base64"
    	"errors"
    	"fmt"
    	"io"
    	"mime"
    	"mime/multipart"
    	"net/http/httptrace"
    	"net/http/internal/ascii"
    	"net/textproto"
    	"net/url"
    	urlpkg "net/url"
    	"strconv"
    	"strings"
    	"sync"
    	_ "unsafe" // for linkname
    
    	"golang.org/x/net/http/httpguts"
    	"golang.org/x/net/idna"
    )
    
    const (
    	defaultMaxMemory = 32 << 20 // 32 MB
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  5. src/net/http/server.go

    package http
    
    import (
    	"bufio"
    	"bytes"
    	"context"
    	"crypto/tls"
    	"errors"
    	"fmt"
    	"internal/godebug"
    	"io"
    	"log"
    	"math/rand"
    	"net"
    	"net/textproto"
    	"net/url"
    	urlpkg "net/url"
    	"path"
    	"runtime"
    	"slices"
    	"strconv"
    	"strings"
    	"sync"
    	"sync/atomic"
    	"time"
    	_ "unsafe" // for linkname
    
    	"golang.org/x/net/http/httpguts"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  6. src/go/build/vendor_test.go

    	listCmd := testenv.Command(t, goBin, "list", "std", "cmd")
    	out, err := listCmd.Output()
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, fullPkg := range strings.Split(string(out), "\n") {
    		pkg, found := strings.CutPrefix(fullPkg, "vendor/")
    		if !found {
    			_, pkg, found = strings.Cut(fullPkg, "/vendor/")
    			if !found {
    				continue
    			}
    		}
    		if !isAllowed(pkg) {
    			t.Errorf(`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 16:29:14 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/iimport.go

    	case 'F', 'G':
    		var tparams []*types.TypeParam
    		if tag == 'G' {
    			tparams = r.tparamList()
    		}
    		sig := r.signature(nil, nil, tparams)
    		r.declare(types.NewFunc(pos, r.currPkg, name, sig))
    
    	case 'T', 'U':
    		// Types can be recursive. We need to setup a stub
    		// declaration before recurring.
    		obj := types.NewTypeName(pos, r.currPkg, name, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/pgo_inl_test.go

    	scanner := bufio.NewScanner(bytes.NewReader(out))
    	curPkg := ""
    	canInline := regexp.MustCompile(`: can inline ([^ ]*)`)
    	haveInlined := regexp.MustCompile(`: inlining call to ([^ ]*)`)
    	cannotInline := regexp.MustCompile(`: cannot inline ([^ ]*): (.*)`)
    	for scanner.Scan() {
    		line := scanner.Text()
    		t.Logf("child: %s", line)
    		if strings.HasPrefix(line, "# ") {
    			curPkg = line[2:]
    			splits := strings.Split(curPkg, " ")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. docs_src/custom_docs_ui/tutorial001.py

            openapi_url=app.openapi_url,
            title=app.title + " - Swagger UI",
            oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
            swagger_js_url="https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js",
            swagger_css_url="https://unpkg.com/swagger-ui-dist@5/swagger-ui.css",
        )
    
    
    @app.get(app.swagger_ui_oauth2_redirect_url, include_in_schema=False)
    async def swagger_ui_redirect():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py

    
    def test_swagger_ui_html(client: TestClient):
        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" in response.text
        assert "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" in response.text
    
    
    def test_swagger_ui_oauth2_redirect_html(client: TestClient):
        response = client.get("/docs/oauth2-redirect")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top