Skip to content

URLSessionExtension

The URLSessionExtension extends Foundation’s URLSession and URLRequest to connect to Storyblok’s Content Delivery API and Management API.

The lowest-level extension in Storyblok’s Swift package handles the following:

  • Authentication
  • Region routing
  • Sensible request defaults and preventive rate limiting
  • Combine publishers that emit cached content before delivering fresh data from the network
  • Paging through the results of any paginated endpoint

Throughout, the full familiar URLSession API stays available for building and sending requests.

The URLSessionExtension is the most flexible library in Storyblok’s Swift SDK. To fetch and decode stories with a higher-level, typed module, use the StoryblokClient.

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.