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_PLATFORMSfor tvOS. This helps Carthage to build only the specified platform when the option--platformis used. (#464) by @jasminlapalme
1.5.0-rc.1
Removed
Added
- Add the
trailing_whitespacerule 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
HttpServerandHttpServerIOinto 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
HttpParserso it percent-encodes the URL components before initializingURLComponents. (#423) by @nejcvivod - Update
SwifterTestsHttpParserwith a test for parsing bracketed query strings. (#423) by @nejcvivod - Use
swift_versionCocoaPods DSL. (#425) by @dnkoutso - Fix compiler warnings in Socket+File.swift for iOS, tvOS, and Linux platforms by using
withUnsafeBytesrather 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.mdto 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)toHttpResonseas 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
HttpRoutercausing 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.pathvalue to be parsed without query parameters. (#404) by @mazyod -
Fixes the issue of missing
Content-Lengthheader item whenshareFilesFromDirectoryis 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
URLComponentsforHttpRequestpath and query parameters parsing #404) by @mazyod HttpResponsefunctionsstatusCode()andreasonPhrasechanged 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.jsonfromAnyObjecttoAnyto allow Swift dictionaries/arrays without converting to their Objective-C counterparts. (#393) by @edwinveger HttpResponse:htmlrequires now a complete html-string, not only the body-part.- Include the
CHANGELOG.mdandREADME.mdin 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