• Dan Harrington's avatar
    net/http: support If-Match in ServeContent · f3862742
    Dan Harrington authored
    - Added support for If-Match and If-Unmodified-Since.
    - Precondition checks now more strictly follow RFC 7232 section 6, which
    affects precedence when multiple condition headers are present.
    - When serving a 304, Last-Modified header is now removed when no ETag is
    present (as suggested by RFC 7232 section 4.1).
    - If-None-Match supports multiple ETags.
    - ETag comparison now correctly handles weak ETags.
    
    Fixes #17572
    
    Change-Id: I35039dea6811480ccf2889f8ed9c6a39ce34bfff
    Reviewed-on: https://go-review.googlesource.com/32014Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    f3862742
Name
Last commit
Last update
..
cgi Loading commit data...
cookiejar Loading commit data...
fcgi Loading commit data...
httptest Loading commit data...
httptrace Loading commit data...
httputil Loading commit data...
internal Loading commit data...
pprof Loading commit data...
testdata Loading commit data...
client.go Loading commit data...
client_test.go Loading commit data...
clientserver_test.go Loading commit data...
cookie.go Loading commit data...
cookie_test.go Loading commit data...
doc.go Loading commit data...
example_test.go Loading commit data...
export_test.go Loading commit data...
filetransport.go Loading commit data...
filetransport_test.go Loading commit data...
fs.go Loading commit data...
fs_test.go Loading commit data...
h2_bundle.go Loading commit data...
header.go Loading commit data...
header_test.go Loading commit data...
http.go Loading commit data...
http_test.go Loading commit data...
jar.go Loading commit data...
main_test.go Loading commit data...
method.go Loading commit data...
npn_test.go Loading commit data...
proxy_test.go Loading commit data...
race.go Loading commit data...
range_test.go Loading commit data...
readrequest_test.go Loading commit data...
request.go Loading commit data...
request_test.go Loading commit data...
requestwrite_test.go Loading commit data...
response.go Loading commit data...
response_test.go Loading commit data...
responsewrite_test.go Loading commit data...
serve_test.go Loading commit data...
server.go Loading commit data...
sniff.go Loading commit data...
sniff_test.go Loading commit data...
status.go Loading commit data...
transfer.go Loading commit data...
transfer_test.go Loading commit data...
transport.go Loading commit data...
transport_internal_test.go Loading commit data...
transport_test.go Loading commit data...
triv.go Loading commit data...