Skip to content

Ambiguous use of 'init(urlString:parameters:headers:cachePolicy:timeoutInterval:)' #298

@arturlangner

Description

@arturlangner

I am trying to build SwiftHTTP files directly in my project (ie. without a separate SwiftHTTP project) to work around some bundling issues. I am using Xcode 9.4.1.

I get the following compilation error:
Ambiguous use of 'init(urlString:parameters:headers:cachePolicy:timeoutInterval:)'
in Operation.swift:275

This exact chunk is the problem: URLRequest(urlString: url, headers: headers)

How can I refactor this piece to make it build?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions