     public static func send(request: Request) {
         Client.sharedInstance.send(request)
     }
+    public static func setBasicAuth(username: String, password: String) {
+        let plainString = "\(username):\(password)" as NSString
+        let plainData = plainString.dataUsingEncoding(NSUTF8StringEncoding)
+        let base64String = plainData?.base64EncodedStringWithOptions(NSDataBase64EncodingOptions.init(rawValue: 0))
+        additionalHeaders[Headers.Authorization] = "Basic \(base64String!)"
+    }
     
     public static func enableSSLPinning(type: SSLPinningType, filePath: String, host: String) {
         sslPinning[host] = SSLPinningConfig(type: type, filePath: filePath)

        }
        
        if request.method == .POST || request.method == .PUT {
            if let httpFiles = request.files {
                let body = NSMutableData()
                let boundary = "--\(Constants.MultipartBoundary)\r\n".dataUsingEncoding(NSUTF8StringEncoding)!
                
                if let params = request.parameters {
                    for (name, value) in params {

    case POST = "POST"
    case PUT = "PUT"
    case DELETE = "DELETE"
    case PATCH = "PATCH"
}

#if os(iOS)
