GithubHelp home page GithubHelp logo

dmefs / context Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gorilla/context

0.0 0.0 0.0 42 KB

Package gorilla/context is a golang registry for global request variables.

Home Page: https://gorilla.github.io

License: BSD 3-Clause "New" or "Revised" License

Go 84.11% Makefile 15.89%

context's Introduction

gorilla/context

License testing codecov godoc sourcegraph OpenSSF Best Practices

Gorilla Logo

⚠⚠⚠ Note ⚠⚠⚠ gorilla/context, having been born well before context.Context existed, does not play well with the shallow copying of the request that http.Request.WithContext (added to net/http Go 1.7 onwards) performs.

Using gorilla/context may lead to memory leaks under those conditions, as the pointers to each http.Request become "islanded" and will not be cleaned up when the response is sent.

You should use the http.Request.Context() feature in Go 1.7.

gorilla/context is a general purpose registry for global request variables.

  • It stores a map[*http.Request]map[interface{}]interface{} as a global singleton, and thus tracks variables by their HTTP request.

License

See the LICENSE file for details.

context's People

Contributors

kisielk avatar elithrar avatar pjvds avatar coreydaley avatar tylerb avatar moraes avatar adammck avatar dmitrybochkarev avatar lk4d4 avatar andrewsmedina avatar areski avatar yuokada avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.