Swift Shell Other
Clone or download
ianpartridge perf: only call addCookies() if there are cookies (#1319)
Currently, RouterResponse.end() always calls addCookies() to add the
Set-Cookie header if required. The code does various pieces of work even
if there are no cookies, such as allocating an array and iterating over
an empty dictionary.

We can avoid all this unnecessary work by checking whether there are any
cookies before calling addCookies().
Latest commit 49c1790 Aug 15, 2018

README.md

Kitura

A Swift Web Framework and HTTP Server

Docs Build Status - Master macOS Linux Apache 2 codecov codebeat badge Slack Status

Summary

Kitura is a web framework and web server that is created for web services written in Swift. For more information, visit www.kitura.io.

Table of Contents

Features

  • URL routing (e.g., GET, POST, PUT, DELETE, PATCH)
  • Codable routing
  • URL parameters
  • Static file serving
  • FastCGI support
  • SSL/TLS support
  • Pluggable middleware

Getting Started

Visit www.kitura.io for a Getting Started guide, tutorials, and API reference documentation.

Contributing to Kitura

All improvements to Kitura are very welcome! Here's how to get started with developing Kitura itself.

  1. Clone this repository.

$ git clone https://github.com/IBM-Swift/Kitura

  1. Build and run tests.

$ swift test

You can find more info on contributing to Kitura in our contributing guidelines.

Community

We love to talk server-side Swift, and Kitura. Join our Slack to meet the team!