- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for serveContent (0.21 sec)
-
src/net/http/fs.go
// request includes an If-Modified-Since header, ServeContent uses // modtime to decide whether the content needs to be sent at all. // // The content's Seek method must work: ServeContent uses // a seek to the end of the content to determine its size. // // If the caller has set w's ETag header formatted per RFC 7232, section 2.3, // ServeContent uses it to handle requests using If-Match, If-None-Match, or If-Range. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 17:06:47 UTC 2024 - 31.1K bytes - Viewed (0) -
src/internal/trace/traceviewer/mmu.go
} return func(w http.ResponseWriter, r *http.Request) { switch r.FormValue("mode") { case "plot": mmu.HandlePlot(w, r) return case "details": mmu.HandleDetails(w, r) return } http.ServeContent(w, r, "", time.Time{}, strings.NewReader(templMMU)) } } var utilFlagNames = map[string]trace.UtilFlags{ "perProc": trace.UtilPerProc, "stw": trace.UtilSTW, "background": trace.UtilBackground,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:29:53 UTC 2023 - 13K bytes - Viewed (0) -
src/net/http/fs_test.go
for _, r := range []string{ "bytes=0-128", "bytes=1-", } { rec := httptest.NewRecorder() req := httptest.NewRequest("GET", "/", nil) req.Header.Set("Range", r) ServeContent(rec, req, "nothing", time.Now(), bytes.NewReader(nil)) res := rec.Result() if res.StatusCode != 200 { t.Errorf("code = %v; want 200", res.Status) } bodyLen := rec.Body.Len() if bodyLen != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"SameSite", Type, 11}, {"SameSiteDefaultMode", Const, 11}, {"SameSiteLaxMode", Const, 11}, {"SameSiteNoneMode", Const, 13}, {"SameSiteStrictMode", Const, 11}, {"Serve", Func, 0}, {"ServeContent", Func, 0}, {"ServeFile", Func, 0}, {"ServeFileFS", Func, 22}, {"ServeMux", Type, 0}, {"ServeTLS", Func, 9}, {"Server", Type, 0}, {"Server.Addr", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)