framework

Integrate httpClient with retry handlers into the Contentstack TS Delivery SDK.

4|6|Updated Apr 19, 2024
One-click install
npx skills add https://github.com/contentstack/contentstack-typescript --skill framework-contentstack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framework
Source: https://github.com/contentstack/contentstack-typescript/tree/main/skills/framework
Command: npx skills add https://github.com/contentstack/contentstack-typescript --skill framework-contentstack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

HTTP and retry coordination for the Contentstack TS Delivery SDK, providing a stable, reusable integration layer that reduces boilerplate and ensures consistent behavior across environments.

Core Features & Use Cases

  • Unified httpClient integration with built-in retry handling via @contentstack/core.
  • Shared, stack-aware headers, live_preview, and cache-aware request handling.
  • Use Case: plug the framework into your stack to enable reliable API calls with automatic retries during transient failures.

Quick Start

Add the framework skill to your stack to enable httpClient with retry and consistent headers.

Frequently Asked Questions about framework

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add HTTP retry mechanisms to the Contentstack TypeScript Delivery SDK?

You can add HTTP retry mechanisms to the Contentstack TypeScript Delivery SDK by integrating a unified httpClient with retryRequestHandler, retryResponseErrorHandler, and retryResponseHandler from @contentstack/core to handle transient failures automatically.

What is the best way to handle transient API failures and ensure consistent request headers in Contentstack TS?

The best way to handle transient API failures and ensure consistent headers in Contentstack TS is to configure a shared, stack-aware HTTP client workflow that manages live_preview, cache handling, and automatic request retries.

Does the Contentstack Delivery SDK support automatic retry handling for stack initialization and API calls?

Yes, the Contentstack Delivery SDK supports automatic retry handling for stack initialization and API calls by applying a unified HTTP client workflow that integrates retry mechanisms from @contentstack/core.

How do I configure live_preview and cache-aware request handling in a Contentstack TypeScript integration?

You can configure live_preview and cache-aware request handling in a Contentstack TypeScript integration by using a unified HTTP client layer that applies stack-specific headers and consistent request behavior across environments.

Why do I need a retry response error handler for Contentstack API calls in TypeScript?

You need a retry response error handler for Contentstack API calls in TypeScript to automatically recover from transient network failures, reducing boilerplate and ensuring reliable request execution across environments.

Can I use a custom HTTP client with retry logic for Contentstack stack initialization?

Yes, you can use a custom HTTP client with retry logic for Contentstack stack initialization by plugging a unified httpClient workflow into your stack to enable reliable API calls with consistent headers.