# `@lazarv/react-server/http`

Low-level HTTP context types shared across middleware, route handlers, and server functions.

## Interfaces

### `CookieSerializeOptions`

```ts
interface CookieSerializeOptions {
    domain?: string;
    path?: string;
    expires?: Date;
    maxAge?: number;
    httpOnly?: boolean;
    secure?: boolean;
    sameSite?: "Strict" | "Lax" | "None" | string;
}
```

### `HttpContext`

```ts
interface HttpContext {
    request: Request;
    url: URL;
    state: Record<string, any>;
    next?: () => Promise<Response | undefined>;
    platform?: {
        runtime: string;
        version?: string;
        request?: any;
        response?: any;
        [key: string]: any;
    };
    [key: string]: any;
}
```

### `RequestContextExtensions`

```ts
interface RequestContextExtensions {
    cookie: Record<string, string>;
}
```
