request(url:customHeaders:method:requestData:)

    Creates request on the underlying HTTPClient. If there is no configuration errors, it tries to connect using connectToHost(_:port:tlsOptions:) and passes parameters onto request(method:url:headers:body:).

    HTTPRequest.swift:200
    final func request(url: String, customHeaders: PackedStringArray = PackedStringArray(), method: HTTPClient.Method = .get, requestData: String = "") -> GodotError

    Returns ok if request is successfully created. (Does not imply that the server has responded), errUnconfigured if not in the tree, errBusy if still processing previous request, errInvalidParameter if given string is not a valid URL format, or errCantConnect if not using thread and the HTTPClient cannot connect to host.

    Other members in extension

    Types

    Type members

    Instance members