HttpRequest.swift 482 B

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