Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ParseRequestURI (0.08 sec)

  1. internal/handlers/forwarder.go

    	// contain the original query string. If the Request was created in code, RequestURI
    	// will be empty, and we will use the URL object instead
    	u := req.URL
    	if req.RequestURI != "" {
    		parsedURL, err := url.ParseRequestURI(req.RequestURI)
    		if err == nil {
    			u = parsedURL
    		}
    	}
    	return u
    }
    
    // copyURL provides update safe copy by avoiding shallow copying User field
    func copyURL(i *url.URL) *url.URL {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top