Skip to content

Response Handling & Formatting #13

Description

@aadityansha06

Current: Just prints raw response

Needed:

Response:
┌────────────────────────────────────────────┐
│ Status: 200 OK                             │
│ Time: 245ms                                │
│ Size: 1.2 KB                               │
├────────────────────────────────────────────┤
│ Headers:                                   │
│   Content-Type: application/json           │
│   X-Rate-Limit: 100                        │
│   X-Rate-Remaining: 87                     │
├────────────────────────────────────────────┤
│ Body: (formatted JSON)                     │
│ {                                          │
│   "id": 123,                               │
│   "name": "John Doe",                      │
│   "email": "john@example.com"              │
│ }                                          │
└────────────────────────────────────────────┘

Options:
[C] Copy response  [S] Save to file  [F] Filter JSON  [H] View headers only

Features:

  • JSON pretty-printing (already have in cJSON maybe?)
  • Syntax highlighting (colored output)
  • Response stats: time, size, status
  • Header inspection
  • Response filtering: Extract specific JSON paths
  • Save response to file

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions