     ///
     /// - returns: The builder instnce.
     fileprivate func method(_ httpMethod: HttpMethod) -> RequestBuilder {
-        self.httpMethod = httpMethod
+        self.httpMethod = httpMethod.rawValue
         return self
     }
 }

    
    private var url: URL?
    
    private var scheme = HTTP
    
    fileprivate var httpMethod = HttpMethod.GET
    
    private var httpHeaders: [String: String] = [:]
    
    // MARK: - API
    
    // MARK: - URL
    ///
    public func url(_ url: URL) -> RequestBuilder {
        self.url = url
        return self


import Foundation

// MARK: - Convenience Constants

/// HTTP Method enumeration.
public enum HttpMethod: String {
    case GET, POST, PUT, DELETE
}

/// Schemes.
public enum Scheme: String {
    case http, https
}

// MARK: - Request builder

/// Request Builder.
///
