Skip to content

Releases: Building42/Telegraph

0.21.0

21 Nov 01:41
Compare
Choose a tag to compare
  • Breaking: Simplify HTTPStatus by removing HTTPStatusCode
  • Breaking: Remove unofficial 444 No Response status

0.20.0

03 Nov 17:46
Compare
Choose a tag to compare
  • 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

03 Nov 15:46
Compare
Choose a tag to compare
  • Support range requests for files, fixes streaming video on iOS
  • Verify the Sec-WebSocket-Protocol header during the WebSocket handshake

0.18.0

03 Nov 15:46
Compare
Choose a tag to compare

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

03 Nov 15:46
Compare
Choose a tag to compare
  • 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

03 Nov 15:45
Compare
Choose a tag to compare
  • Add isRunning boolean to the Server
  • Update CocoaPods to version 1.5.3

0.15.0

03 Nov 15:45
Compare
Choose a tag to compare
  • 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

03 Nov 15:45
Compare
Choose a tag to compare
  • 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

03 Nov 15:44
Compare
Choose a tag to compare
  • Add automatic port selection (thanks harrisg)
  • Update CocoaAsyncSocket to version 7.6.2

0.12.0

03 Nov 15:44
Compare
Choose a tag to compare
  • 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)