Releases: httpswift/swifter
Releases · httpswift/swifter
1.5.0
Added
- Add two new cases to the responses (
notAcceptable
,tooManyRequests
). (#437) by @KKuzmichev
Fixed
Changed
- Fix
SUPPORTED_PLATFORMS
for tvOS. This helps Carthage to build only the specified platform when the option--platform
is used. (#464) by @jasminlapalme
1.5.0-rc.1
Removed
Added
- Add the
trailing_whitespace
rule in Swiftlint and autocorrect all the source files. (#421) by @Vkt0r - Update the project for Xcode 11.1. (#438) by @Vkt0r
- Add optional 'Content-Type' to Data HttpResponse. (#450) by @SoftwareEngineerChris
- Support Xcode 12 and Swift 5+. (#462) by @Vkt0r
Changed
- Turn
HttpServer
andHttpServerIO
into open classes to allow for more customization. (#443) by @cobbal - Set the version of the HTTP Server based in the project version in the Info.plist for macOS, iOS and tvOS platforms. (#416) by @Vkt0r
- Update
HttpParser
so it percent-encodes the URL components before initializingURLComponents
. (#423) by @nejcvivod - Update
SwifterTestsHttpParser
with a test for parsing bracketed query strings. (#423) by @nejcvivod - Use
swift_version
CocoaPods DSL. (#425) by @dnkoutso - Fix compiler warnings in Socket+File.swift for iOS, tvOS, and Linux platforms by using
withUnsafeBytes
rather than&
to get a scoped UnsafeRawPointer (#445) by @kbongort. - Fix tests on linux by importing FoundationNetworking for NSURLSession APIs. (#446) by @kbongort
- Replace CircleCI for continuous integration in favor of Github Actions. (#446) by @Vkt0r
1.4.7
Added
- A new
CHANGELOG.md
to keep track of changes in the project. (#385) by @Vkt0r - Added Danger and Swiftlint to the project. (#398) by @Vkt0r
- Added the following to
Scopes
:manifest
,ontouchstart
,dataText
. (#410) by @apocolipse - Added
htmlBody(String)
toHttpResonse
as a compability case for the changedhtml(String)
case. (#410) by @apocolipse
Fixed
-
An issue causing a crash regarding a thread race condition. (#399) by @Vkt0r
-
An issue in the
HttpRouter
causing issues to handle routes with overlapping in the tail. (#379, #382) by @Vkt0r -
Fixes build errors by excluding XC(UI)Test files from regular targets. (#397) by @ChristianSteffens
-
Fixes
HttpRequest.path
value to be parsed without query parameters. (#404) by @mazyod -
Fixes the issue of missing
Content-Length
header item whenshareFilesFromDirectory
is being used to share files. (#406) by @nichbar
Changed
- Performance: Batch reads of websocket payloads rather than reading byte-by-byte. (#387) by @lynaghk
- Podspec source_files updated to match source file directory changes. (#400) by @welsonpan
- Refactor: Use Foundation API for Base64 encoding. (#403) by @mazyod
- Refactor: Use
URLComponents
forHttpRequest
path and query parameters parsing #404) by @mazyod HttpResponse
functionsstatusCode()
andreasonPhrase
changed to computed variables instead of functions, and made public (No impact on existing usage as it was previously internal). (#410) by @apocolipse- Adjusted the associated type of enum case
HttpResponseBody.json
fromAnyObject
toAny
to allow Swift dictionaries/arrays without converting to their Objective-C counterparts. (#393) by @edwinveger HttpResponse
:html
requires now a complete html-string, not only the body-part.- Include the
CHANGELOG.md
andREADME.md
in the Xcode-Project for easy access / changes.
Removed
1.4.3
1.4.2: Merge pull request #317 from oliveroneill/server-start-bug
Fix bug where server may fail to start