- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ServeContent (0.12 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/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)