• Daniel Theophanes's avatar
    webdav: add Context argument to FileSystem interface · 4bb47a10
    Daniel Theophanes authored
    Currently there is no way to pass request scoped information from
    the handler to the FileSytem interface. This can be important
    to pass credentials or timeout parameters to the FileSystem
    operations. Pipe context through the request from
    http.Request.Context(). With pre-go1.7 use context.Background().
    
    Custom FileSystem implementations will need to change, but it will
    only require a new argument in each of the FileSystem methods.
    The change will be trivial to update to.
    
    Fixes golang/go#17658
    
    Change-Id: I7491faf3467ad55db793a68081e074a9b3f9624d
    Reviewed-on: https://go-review.googlesource.com/32421Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    4bb47a10
Name
Last commit
Last update
..
internal/xml Loading commit data...
file.go Loading commit data...
file_go1.6.go Loading commit data...
file_go1.7.go Loading commit data...
file_test.go Loading commit data...
if.go Loading commit data...
if_test.go Loading commit data...
litmus_test_server.go Loading commit data...
lock.go Loading commit data...
lock_test.go Loading commit data...
prop.go Loading commit data...
prop_test.go Loading commit data...
webdav.go Loading commit data...
webdav_test.go Loading commit data...
xml.go Loading commit data...
xml_test.go Loading commit data...