sanic icon indicating copy to clipboard operation
sanic copied to clipboard

Add Request properties for HTTP method info

Open ahopkins opened this issue 1 year ago • 1 comments

Adds three properties to Request object:

  • is_safe
  • is_idempotent
  • is_cacheable

ahopkins avatar Aug 01 '22 19:08 ahopkins

Codecov Report

Merging #2516 (e36a51e) into main (8e9342e) will increase coverage by 0.027%. The diff coverage is 100.000%.

@@              Coverage Diff              @@
##              main     #2516       +/-   ##
=============================================
+ Coverage   87.403%   87.430%   +0.027%     
=============================================
  Files           69        69               
  Lines         5565      5577       +12     
  Branches       969       969               
=============================================
+ Hits          4864      4876       +12     
  Misses         509       509               
  Partials       192       192               
Impacted Files Coverage Δ
sanic/constants.py 100.000% <100.000%> (ø)
sanic/request.py 95.396% <100.000%> (+0.108%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Aug 01 '22 19:08 codecov[bot]