         }
     }
     
-    private func insertInBody(headers: [String: String], request: URLRequest) -> URLRequest {
+    private func insertInHeaders(with headers: [String: String], request: URLRequest) -> URLRequest {
         var newRequest = request
         for (key, value) in headers {
             newRequest.addValue(value, forHTTPHeaderField: key)

                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 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")
