Go to file
David Fowler 0f4f1950f1
Attempt to make it easier to detect when the request is done (#1021)
- Today the async local reference to the HttpContext flows when the execution context is captured. When the http request has ended, the HttpContext property will return the reference to an invalid HttpContext instead of returning null. This change stores both the request id and the HttpContext and makes sure both match before returning anything valid.
- This is still racy but should catch more cases of people doing bad things.
- There will still be issue if people store the context in a local and use that reference instead of accessing it through the property getter but we can live with that.
- Set the TraceIdentifier to null in the default HttpContextFactory
- Added tests
2018-06-26 11:49:12 -07:00
.github Create ISSUE_TEMPLATE.md 2018-01-02 13:55:20 -08:00
.vsts-pipelines/builds Adding VSTS file 2018-06-07 16:22:58 -07:00
build Update dependencies.props 2018-06-25 11:15:38 -07:00
samples/SampleApp Upgrade to netcoreapp22 2018-05-08 10:50:50 -07:00
src Attempt to make it easier to detect when the request is done (#1021) 2018-06-26 11:49:12 -07:00
test Attempt to make it easier to detect when the request is done (#1021) 2018-06-26 11:49:12 -07:00
.appveyor.yml Update dependencies.props to 2.1.0-preview-28193, build tools to 2.1.0-preview1-1010 [ci skip] 2018-01-31 15:01:11 -08:00
.gitattributes
…
.gitignore Pin tool and package versions to make builds more repeatable 2017-11-01 09:32:44 -07:00
.travis.yml Update dependencies.props to 2.1.0-preview-28193, build tools to 2.1.0-preview1-1010 [ci skip] 2018-01-31 15:01:11 -08:00
CONTRIBUTING.md
…
Directory.Build.props Add certificate names for code signing 2018-06-05 22:32:18 -07:00
Directory.Build.targets Upgrade to netcoreapp22 2018-05-08 10:50:50 -07:00
HttpAbstractions.sln
…
LICENSE.txt
…
NuGet.config Use MSBuild to set NuGet feeds instead of NuGet.config 2017-11-20 12:15:57 -08:00
NuGetPackageVerifier.json
…
README.md
…
build.cmd Update bootstrappers 2017-10-09 12:42:32 -07:00
build.sh Update bootstrappers 2017-10-09 12:42:32 -07:00
korebuild-lock.txt Update dependencies.props 2018-06-25 11:15:38 -07:00
korebuild.json Update dependencies.props to 2.1.0-preview-28193, build tools to 2.1.0-preview1-1010 [ci skip] 2018-01-31 15:01:11 -08:00
run.cmd Update bootstrappers 2017-10-09 12:42:32 -07:00
run.ps1 Update bootstrapper scripts (automated commit) [ci skip] 2018-05-25 16:14:22 -07:00
run.sh Update bootstrapper scripts (automated commit) [ci skip] 2018-05-25 16:14:22 -07:00
version.props Update version number to 2.2.0 2018-04-16 16:57:43 -07:00

README.md

HttpAbstractions

AppVeyor Travis
AppVeyor Travis

Contains HTTP abstractions for ASP.NET Core such as HttpContext, HttpRequest, HttpResponse and RequestDelegate.

It also contains IApplicationBuilder and extensions to create and compose your application's pipeline.

This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.