Skip to content

implement context.Context  #17

Open
@donseba

Description

Little "question about" or "request for" context.Context
I know it is something vestigo is not, and probably will implement.

Since you have studied and written about the mainstream mux/routing tools in golang I'd like to know how to implement golang's context.Context or something similar into Vestigo..

This article is pretty clear on how to do it with the default http.Handler but i think it is not very idiomatic.

Would it be possible to do something like goji does ? And limit it to

  • func(http.ResponseWriter, *http.Request)
  • func(context.Context, http.ResponseWriter, *http.Request)

I have no idea if and how it would influence the performance.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions