Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context: inherits context cancelation and deadline from http.Request context for Go>=1.7 #1690

Merged
merged 3 commits into from Dec 13, 2018

Commits on Dec 11, 2018

  1. context: inherits context cancelation and deadline from http.Request …

    …context for Go>=1.7
    
    *gin.Context implements standard context.Context methods, but always
    returns data as context is still valid. Since Go 1.7, http.Request now
    contains a context.Context object, which can be controlled by the
    http.Server to indicates that the context is now closed, and persue of
    request should be canceled.
    
    This implements the propagation of http.Request context methods inside
    gin.Context to have HTTP context cancelation information at gin.Context
    level.
    
    Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
    rbeuque74 committed Dec 11, 2018
    Configuration menu
    Copy the full SHA
    d37b1d6 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2018

  1. Configuration menu
    Copy the full SHA
    2f4d53b View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2018

  1. Configuration menu
    Copy the full SHA
    2c4151f View commit details
    Browse the repository at this point in the history