0001 /// Represents a HTTP Header, Key and Value 0002 public typealias Header= (String, String) 0003 0004 /// Represents a HTTP Request 0005 public protocol RequestType
Nest.swift:8 var headers:[Header] { get }Nest.swift:16 var headers:[Header] { get }{ 0006 var method:String { get } 0007 var path:String { get } 0008 var headers:[Header] { get } 0009 var body:String? { get } 0010 } 0011 0012 0013 /// Represents a HTTP Response 0014 public protocol ResponseType
Nest.swift:20 public typealias Application = RequestType -> ResponseType{ 0015 var statusLine:String { get } 0016 var headers:[Header] { get } 0017 var body:String? { get } 0018 } 0019 0020 public typealias Application = RequestType -> ResponseType 0021 0022
Nest.swift:20 public typealias Application = RequestType -> ResponseType