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.
Further resources
Section titled “Further resources”URLSessionExtension GuideLearn how to get started with URLSessionExtension.
URLSessionExtension API ReferenceBrowse the complete documentation of URLSessionExtension.
Content Delivery APIBrowse the endpoints of the Content Delivery API.
Management APIBrowse the endpoints of the Management API.
Thanks! We received your feedback.
An error occurred. Please try again.
Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.
- Need help?Contact support (opens in a new window)
- Something isn’t right?Check system status (opens in a new window)
Get in touch with the Storyblok community