Skip to content

Add raw response access option #7

@karlwaldman

Description

@karlwaldman

Overview

Add optional raw: true parameter to access full HTTP response (headers, status, etc.) instead of just data.

Implementation

Add raw?: boolean option to all endpoint methods. When true, return { data, headers, status, statusText } instead of just data.

Example API

const response = await client.getLatestPrices({ raw: true });
console.log(response.headers);  // Access headers
console.log(response.status);   // 200
console.log(response.data);     // Price[]

Use Cases

  • Access rate limit headers
  • Check response status codes
  • Debug API responses
  • Advanced integrations

Priority

P2 - Nice to have - Useful for advanced users

Related

Mentioned in Walk phase requirements in PRD

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions