Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestServeFileMimeType (0.13 sec)

  1. src/net/http/fs_test.go

    		}
    		resp.Body.Close()
    	}
    	get("0", []string{"text/plain; charset=utf-8"})
    	get("1", []string{ctype})
    	get("2", nil)
    }
    
    func TestServeFileMimeType(t *testing.T) { run(t, testServeFileMimeType) }
    func testServeFileMimeType(t *testing.T, mode testMode) {
    	ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		ServeFile(w, r, "testdata/style.css")
    	})).ts
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
Back to top