diff --git a/handler.go b/handler.go index 0d7b653..916dc3f 100644 --- a/handler.go +++ b/handler.go @@ -16,7 +16,7 @@ type Handler struct { // NewHandler creates a routed tus protocol handler. This is the simplest // way to use tusd but may not be as configurable as you require. If you are // integrating this into an existing app you may like to use tusd.NewHandler -// instead. Using tusd.NewHandler allows the tus handlers to be combined into +// instead. Using tusd.NewUnroutedHandler allows the tus handlers to be combined into // your existing router (aka mux) directly. It also allows the GET and DELETE // endpoints to be customized. These are not part of the protocol so can be // changed depending on your needs. diff --git a/unrouted_handler.go b/unrouted_handler.go index 95c748c..d451b22 100644 --- a/unrouted_handler.go +++ b/unrouted_handler.go @@ -67,9 +67,9 @@ type Config struct { Logger *log.Logger } -// UnroutedHandler exposes methods to handle requests as part of the tus protocol. -// These are PostFile and PatchFile. It also includes GetFile and DelFile -// however these are part of the spec. They are provided for convenience. +// UnroutedHandler exposes methods to handle requests as part of the tus protocol, +// such as PostFile, HeadFile, PatchFile and DelFile. In addition the GetFile method +// is provided which is, however, not part of the specification. type UnroutedHandler struct { config Config dataStore DataStore