-
Notifications
You must be signed in to change notification settings - Fork 4
v0.17.3-rc1 #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
v0.17.3-rc1 #144
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…r to have all them in-place
…ly bypassed to a GET handler
… response buffer to render the request.
…checking for Len() int compatibility to automatically determine the size
… search instead of linear probe
…or sized streams)
…cally in runtime rather than being a hardcoded const
… (less than NET.SmallBody bytes) avoid being compressed automatically
…request isn't chunked
…tered as a part of path segment
…ding string only once
…oints. Disabled decoding urlencoded slash
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bugfix
pull request that only fixes some bugs
documentation
Improvements or additions to documentation
enhancement
New feature or request
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.
First release-candidate for v0.17.3. It introduces better codecs system, reworked streams and many other QoL features. The next release candidate (likely to be chosen for the release) is planned to mostly consist of bugfixes and improved test coverage.
Changes:
codec.Suit(), thereby making it possible to register all out-of-the-box available codecs all at once.Compress(string)method is nowCompression(string), the newCompress()decides automatically, whether the body will or will not be compressed. All bodies exceedingConfig.NET.SmallBodylimit (4096 by default) are avoided from being compressed. The codec to be used is chosen based on client preferences, respecting q-values and/or (otherwise) the order.middleware.Autocompressmiddleware. Handy to specify it for the static content distribution.http.Request.Encodingstruct. All its prior attributes are now embedded directly into the request entity.http.Request.Body. This enables plain-body echo for non-chunked requests. Is a real-real transparent echo now!http.Response.SizedStream(io.Reader, int64)intohttp.Response.Stream(io.Reader). The size hint is now optional, and if not set, the reader is additionally examined for compatibility with the Len() int interface.inbuilt.Router.EnableTRACE(true)flag.%3a).Transfer-Encoding: identityis now ignored.