Skip to content

feat: Response with status, body, headers, cookies (P1 #10) - #27

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
feat/response-headers
Apr 26, 2026
Merged

feat: Response with status, body, headers, cookies (P1 #10)#27
ZhuchkaTriplesix merged 1 commit into
devfrom
feat/response-headers

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member
  • Add oxyroute.Response dataclass; export from package
  • dispatch: map returns to RSGI with full header list via response::send_with_headers
  • Support dict with status/body plus optional headers/cookies (TypedDict-style)
  • Legacy {status, body} dict unchanged; headers merge with default content-type
  • ASGI test: 201, application/json, X-Trick header
  • docs/handlers.md: document structured returns

- Add oxyroute.Response dataclass; export from package
- dispatch: map returns to RSGI with full header list via response::send_with_headers
- Support dict with status/body plus optional headers/cookies (TypedDict-style)
- Legacy {status, body} dict unchanged; headers merge with default content-type
- ASGI test: 201, application/json, X-Trick header
- docs/handlers.md: document structured returns
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Apr 26, 2026

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

123

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit cf159d1 into dev Apr 26, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the feat/response-headers branch April 26, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant