HttpRequest.swift 500 B

1234567891011121314151617
  1. //
  2. // HttpRequest.swift
  3. // Swifter
  4. // Copyright (c) 2014 Damian Kołakowski. All rights reserved.
  5. //
  6. import Foundation
  7. public struct HttpRequest {
  8. public let url: String
  9. public let urlParams: [(String, String)] // http://stackoverflow.com/questions/1746507/authoritative-position-of-duplicate-http-get-query-keys
  10. public let method: String
  11. public let headers: [String: String]
  12. public let body: String?
  13. public var capturedUrlGroups: [String]
  14. public var address: String?
  15. }