CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | BSD |
| ReleasedLast Release | Mar 2016 |
| SPMSupports SPM | ✓ |
Maintained by Kyle Fuller.
Collection of utilities to aid use of the Nest Web Server Gateway Interface. Provides a RequestType and ResponseType implementation.
Inquiline provides an implementation of RequestType.
let request = Request(method: "GET", path: "/", headers: nil, body: nil)Inquiline extends RequestType to provide a convinience header subscript and also header accessors:
request["Content-Type"]
request.host
request.contentType
request.contentLength
request.accept
request.authorization
request.cacheControlInquiline provides an implementation of ResponseType.
let response = Response(.Ok, contentType: "plain/text", body: "Hello World")HTTP/1.1 200 OK
Content-Type: plain/text
Content-Length: 11
Hello Worldresponse["Cache-Control"] = "no-cache"response.contentType = "application/json"
response.cacheControl = "no-cache"pod 'Inquiline'Inquiline is released under the BSD license. See LICENSE.