Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cleanPath (0.12 sec)

  1. src/net/http/server.go

    }
    
    // DefaultServeMux is the default [ServeMux] used by [Serve].
    var DefaultServeMux = &defaultServeMux
    
    var defaultServeMux ServeMux
    
    // cleanPath returns the canonical path for p, eliminating . and .. elements.
    func cleanPath(p string) string {
    	if p == "" {
    		return "/"
    	}
    	if p[0] != '/' {
    		p = "/" + p
    	}
    	np := path.Clean(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top