emersion / go-webdav

A Go library for WebDAV, CalDAV and CardDAV
MIT License
314 stars 66 forks source link

webdav: add http.Header to FileSystem.Create() #154

Open DeepDiver1975 opened 4 months ago

DeepDiver1975 commented 4 months ago

alternative to #153

emersion commented 4 months ago

I'm not a huge fan of exposing generic HTTP stuff to backends in general.

If there is a custom HTTP header that a library user wants to pass to the backend, they can use the context.