This repository was archived by the owner on Jun 2, 2023. It is now read-only.
Update module urfave/negroni to v0.3.0 #114
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.0.0-20180105164225-ff85fb036d90
->v0.3.0
Release Notes
urfave/negroni
v0.3.0
Compare Source
Added
With()
helper for building a newNegroni
struct chaining handlers fromexisting
Negroni
structsLogger
middleware via a configurabletext/template
string injectable via
.SetFormat
. AddedLoggerDefaultFormat
andLoggerDefaultDateFormat
to configure the default template and date formatused by the
Logger
middleware.http.Pusher
interface for Go 1.8+.WrapFunc
to converthttp.HandlerFunc
into anegroni.Handler
Formatter
field added toRecovery
middleware to allow configuring howpanic
s are output. Default ofTextFormatter
(how it was output in0.2.0
) used.HTMLPanicFormatter
also added to allow easy outputing ofpanic
s as HTML.Fixed
Written()
correct returnsfalse
if no response header has been writtenhttp.CloseNotifier
with thenegroni.ResponseWriter
if theunderlying
http.ResponseWriter
implements it (previously would alwaysimplement it and panic if the underlying
http.ResponseWriter
did not.Changed
0
in the case that no handler writes status -- waspreviously
200
(in 0.2.0, before that it was0
so this reestablishes thatbehavior)
panic
s thrown by callbacks provided to theRecovery
handlertext/plain
content-type if none is setALogger
interface to allow custom logger outputs to be used with theLogger
middleware. Changes embeded field innegroni.Logger
fromLogger
to
ALogger
.Logger
middleware output changed to be more structure and verbose(also now configurable, see
Added
)$PORT
in.Run()
if an address isnot passed in. Fall back to binding to
:8080
if no address specified(configuable via
DefaultAddress
).PanicHandlerFunc
added toRecovery
middleware to enhance custom handlingof
panic
s by providing additional information to the handler including thestack and the
http.Request
.Recovery.ErrorHandlerFunc
was also added, butdeprecated in favor of the new
PanicHandlerFunc
.v0.2.0
Compare Source
Added
New()
Negroni.Handlers()
to fetch all of the handlers for a given chainRecovery
handler was bumped to 8kNegroni.UseFunc
to push another handler onto the chainChanged
beforeFuncs
so the information is available to them200
in the case that no handler writes status -- was previously0
nil
handler is given tonegroni.Use
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.