         return newRequest
     }
     
-    private func insertInBody(json: [String: Any], request: URLRequest) -> URLRequest {
+    private func insertInBody(with json: [String: Any], request: URLRequest) -> URLRequest {
         do {
             if request.httpMethod == HTTPMethod.GET.rawValue || request.httpMethod == HTTPMethod.DELETE.rawValue {
                 throw FaroError.malformed(info: "HTTP " + request.httpMethod! + " request can't have a body")

                guard let headers = parameters.parameters as? [String: String] else {
                    throw FaroError.malformed(info: "HTTP headers must be in a [String: String] format")
                }
                return insertInBody(headers: headers, request: request)
            case .urlComponents:
                guard let componentsDict = parameters.parameters as? [String: String] else {
                    throw FaroError.malformed(info: "URL components must first be cast to strings")
                }
                return insertInBody(componentsDict: componentsDict, request: request)
            case .jsonBody:
                return insertInBody(json: parameters.parameters, request: request)
            }
        } catch {
            PrintFaroError(error)

        return newRequest
    }
    
    private func insertInUrl(with componentsDict: [String: String], request: URLRequest) -> URLRequest {
        var newRequest: URLRequest! = request
        var components = URLComponents(url: newRequest.url!, resolvingAgainstBaseURL: false)
        if (components?.queryItems == nil) {
