From 12037a8e1d0613056c028c891f198a68f78456d8 Mon Sep 17 00:00:00 2001 From: Max Brosnahan Date: Tue, 8 Dec 2015 09:09:47 +1300 Subject: [PATCH] Tweak documentation --- handler.go | 2 +- unrouted_handler.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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