RequestSetup

public enum RequestSetup

Type describing the timing of Request setup after creation.

  • Calls the needed lifetime methods on created Requests only after they have resume called. Requests are inert upon creation.

    Declaration

    Swift

    case lazy
  • Calls the needed lifetime methods on created Requests immediately upon creation. Default in Alamofire versions before 5.11.

    Warning

    May lead to races between Request.resume() and various lifetime events. Not recommended except for backward compatibility.

    Declaration

    Swift

    case eager