move handler context keys into a "meta" request field #22

Closed
opened 2023-04-29 22:13:19 +00:00 by tjp · 0 comments
Owner

For requests in the titan and now also spartan protocol, we're adding additional request data into the context simply because there is no appropriate field in a gus.Request.

Add an any field "Meta" to gus.Request instead, and use that for these kinds of needs.

For 1.0 compatibility we'll have to continue including the context keys, but we can slap a deprecated notice on them in docs and push users towards (accessor functions making use of) gus.Request.Meta.

For requests in the titan and now also spartan protocol, we're adding additional request data into the context simply because there is no appropriate field in a `gus.Request`. Add an `any` field "Meta" to gus.Request instead, and use that for these kinds of needs. For 1.0 compatibility we'll have to continue including the context keys, but we can slap a deprecated notice on them in docs and push users towards (accessor functions making use of) `gus.Request.Meta`.
tjp added the
enhancement
label 2023-04-29 22:13:19 +00:00
tjp changed title from move handle context keys into a "meta" request field to move handler context keys into a "meta" request field 2023-04-29 22:28:49 +00:00
tjp closed this issue 2023-05-01 14:16:53 +00:00
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tjp/gus#22
No description provided.