Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for pathUnescape (0.26 sec)

  1. src/net/http/pattern.go

    	// Valid Go identifier.
    	for i, c := range s {
    		if !unicode.IsLetter(c) && c != '_' && (i == 0 || !unicode.IsDigit(c)) {
    			return false
    		}
    	}
    	return true
    }
    
    func pathUnescape(path string) string {
    	u, err := url.PathUnescape(path)
    	if err != nil {
    		// Invalidly escaped path; use the original
    		return path
    	}
    	return u
    }
    
    // relationship is a relationship between two patterns, p1 and p2.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. cmd/utils.go

    			ep = path.Clean(ep)
    			ep += slashSeparator
    		} else {
    			ep = path.Clean(ep)
    		}
    		ep = ep[1:]
    	}
    	return ep
    }
    
    // unescapeGeneric is similar to url.PathUnescape or url.QueryUnescape
    // depending on input, additionally also handles situations such as
    // `//` are normalized as `/`, also removes any `/` prefix before
    // returning.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. src/net/url/url.go

    }
    
    // PathUnescape does the inverse transformation of [PathEscape],
    // converting each 3-byte encoded substring of the form "%AB" into the
    // hex-decoded byte 0xAB. It returns an error if any % is not followed
    // by two hexadecimal digits.
    //
    // PathUnescape is identical to [QueryUnescape] except that it does not
    // unescape '+' to ' ' (space).
    func PathUnescape(s string) (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  4. api/go1.8.txt

    pkg net, type Buffers [][]uint8
    pkg net, type Dialer struct, Resolver *Resolver
    pkg net, type Resolver struct
    pkg net, type Resolver struct, PreferGo bool
    pkg net/url, func PathEscape(string) string
    pkg net/url, func PathUnescape(string) (string, error)
    pkg net/url, method (*URL) Hostname() string
    pkg net/url, method (*URL) MarshalBinary() ([]uint8, error)
    pkg net/url, method (*URL) Port() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 21 05:25:57 UTC 2016
    - 16.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/proxy.go

    	}
    	return nil
    }
    
    // pathEscape escapes s so it can be used in a path.
    // That is, it escapes things like ? and # (which really shouldn't appear anyway).
    // It does not escape / to %2F: our REST API is designed so that / can be left as is.
    func pathEscape(s string) string {
    	return strings.ReplaceAll(url.PathEscape(s), "%2F", "/")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
Back to top