Releases: Building42/Telegraph
Releases · Building42/Telegraph
0.21.0
- Breaking: Simplify
HTTPStatus
by removing HTTPStatusCode
- Breaking: Remove unofficial
444 No Response
status
0.20.0
- MIT license, feel free to use Telegraph is your personal and commercial projects
- Fix incorrect deprecation warnings for Server start
- Use Carthage for Telegraph and the examples
0.19.0
- Support range requests for files, fixes streaming video on iOS
- Verify the
Sec-WebSocket-Protocol
header during the WebSocket handshake
0.18.0
Breaking
- Convert to Swift 4.2
HTTPHeader
is now called HTTPHeaderName
HTTPMethod
is now a struct and uses uppercase notation
HTTPResponse
initializer uses HTTPStatus
instead of HTTPStatusCode
HTTPVersion
initializer uses major:
and minor:
labels
Server
now has a delegate
and a webSocketDelegate
Server
start method has different labels and is easier to overload
HTTP changes
- Fix keep-alive connections, gracefully handle both HTTP/1.0 and HTTP/1.1
- Any protocol data already read by the
HTTPParser
is now correctly passed on connection upgrade
- Add worker queue to control the concurrency of requests (see
Server.concurrency
)
- Add symbolic link support to the
HTTPFileHandler
(thanks lj-dickey)
- Performance improvements in the
HTTPParser
and smarter HTTP header serialization
WebSockets changes
WebSocketClient
is now more reliable, with better error and upgrade handling
- WebSocket connections perform a proper close handshake according to spec
- WebSocket close codes are now handled by the parser
Other changes
- Date formatting is now centralized in the
RFC1123
helper
SHA1
has been replaced with Apple's CommonCrypto
- Update demo based on the recent changes and improvements
0.17.0
- Fix big performance issue in parsing the WebSocket payload
- Fix small issue in writing WebSocket payload size
- Update demo application, use JSONEncoder and JSONDecoder
- Update CocoaPods configuration, clean up
0.16.0
- Add
isRunning
boolean to the Server
- Update CocoaPods to version 1.5.3
0.15.0
- Fix Server's
isSecure
boolean bug
- Update demo application, now includes a JSON endpoint example
- Update CocoaPods to version 1.5.0
0.14.0
- Breaking:
DispatchTimer
has been simplified and now defaults to a background queue
- Convert to Swift 4.1
- Update CocoaAsyncSocket to version 7.6.3
- Update HTTPParserC to version 2.8.1
- Update CocoaPods to version 1.4.0
0.13.0
- Add automatic port selection (thanks harrisg)
- Update CocoaAsyncSocket to version 7.6.2
0.12.0
- Fix route HTTP method matching (e.g. a GET route shouldn't respond to PUT)
- Add support for implicit HEAD requests on GET routes (see
implicitHeadRequests
in HTTPRouteHandler
)