Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for reqURI (0.14 sec)

  1. src/net/http/httputil/dump.go

    	// DumpRequestOut, fall back to the old way if the caller
    	// provides a non-server Request.
    	reqURI := req.RequestURI
    	if reqURI == "" {
    		reqURI = req.URL.RequestURI()
    	}
    
    	fmt.Fprintf(&b, "%s %s HTTP/%d.%d\r\n", valueOrDefault(req.Method, "GET"),
    		reqURI, req.ProtoMajor, req.ProtoMinor)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. cmd/utils_test.go

    	req.Header.Set("content-md5", "====test")
    	jsonReq := dumpRequest(req)
    	type jsonResult struct {
    		Method     string      `json:"method"`
    		RequestURI string      `json:"reqURI"`
    		Header     http.Header `json:"header"`
    	}
    	res := jsonResult{}
    	if err = json.Unmarshal([]byte(strings.ReplaceAll(jsonReq, "%%", "%")), &res); err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. cmd/utils.go

    	// to ignore URL encoded values.
    	rawURI := strings.ReplaceAll(r.RequestURI, "%", "%%")
    	req := struct {
    		Method     string      `json:"method"`
    		RequestURI string      `json:"reqURI"`
    		Header     http.Header `json:"header"`
    	}{r.Method, rawURI, header}
    
    	var buffer bytes.Buffer
    	enc := json.NewEncoder(&buffer)
    	enc.SetEscapeHTML(false)
    	if err := enc.Encode(&req); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
Back to top