---
title: Http
description: Http protocol schemas
---

{/* ⚠️  AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs go in content/docs/guides/. */}

<Callout type="info">
**Source:** `packages/spec/src/integration/http.zod.ts`
</Callout>

## TypeScript Usage

```typescript
import { RateLimitConfig } from '@objectstack/spec/integration';
import type { RateLimitConfig } from '@objectstack/spec/integration';

// Validate data
const result = RateLimitConfig.parse(data);
```

---

## RateLimitConfig

### Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **strategy** | `Enum<'fixed_window' \| 'sliding_window' \| 'token_bucket' \| 'leaky_bucket'>` | ✅ | Rate limiting strategy |
| **maxRequests** | `number` | ✅ | Maximum requests per window |
| **windowSeconds** | `number` | ✅ | Time window in seconds |
| **burstCapacity** | `number` | optional | Burst capacity |
| **respectUpstreamLimits** | `boolean` | ✅ | Respect external rate limit headers |
| **rateLimitHeaders** | `Object` | optional | Custom rate limit headers |


---

