Types of URLSession in iOS

URLSessions are responsible for sending and receiving  HTTP requests. Tasks within the given URL system share a common configuration object, which defines connection behaviour like maximum number of allowed connections, whether to allow connections to cellular network and so on. iOS provides us with the following types of URLSessions for us to enable data transfer.

  • URL Shared session
  • URL default session
  • URL ephemeral session
  • URL background session

 

Leave a Reply