Skip to content

Commit d73bc73

Browse files
author
joe.gregorio
committed
Fixed issue #33 by adding in the Http.optimistic_concurrency_methods attribute
1 parent aa956b6 commit d73bc73

File tree

10 files changed

+59
-8
lines changed

10 files changed

+59
-8
lines changed

‎doc/html/_sources/libhttplib2.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,14 @@ Http Objects
299299
If ``False``, then exceptions will be thrown.
300300

301301

302+
.. attribute:: Http.optimistic_concurrency_methods
303+
304+
By default a list that only contains "PUT", this attribute
305+
controls which methods will get 'if-match' headers attached
306+
to them from cached responses with etags. You can append
307+
new items to this list to add new methods that should
308+
get this support, such as "PATCH".
309+
302310
.. attribute:: Http.ignore_etag
303311

304312
Defaults to ``False``. If ``True``, then any etags present in the cached

‎doc/html/genindex.html‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h3>Navigation</h3>
4242

4343
<h1id="index">Index</h1>
4444

45-
<ahref="#A"><strong>A</strong></a> | <ahref="#C"><strong>C</strong></a> | <ahref="#D"><strong>D</strong></a> | <ahref="#F"><strong>F</strong></a> | <ahref="#G"><strong>G</strong></a> | <ahref="#H"><strong>H</strong></a> | <ahref="#I"><strong>I</strong></a> | <ahref="#P"><strong>P</strong></a> | <ahref="#R"><strong>R</strong></a> | <ahref="#S"><strong>S</strong></a> | <ahref="#U"><strong>U</strong></a> | <ahref="#V"><strong>V</strong></a>
45+
<ahref="#A"><strong>A</strong></a> | <ahref="#C"><strong>C</strong></a> | <ahref="#D"><strong>D</strong></a> | <ahref="#F"><strong>F</strong></a> | <ahref="#G"><strong>G</strong></a> | <ahref="#H"><strong>H</strong></a> | <ahref="#I"><strong>I</strong></a> | <ahref="#O"><strong>O</strong></a> | <ahref="#P"><strong>P</strong></a> | <ahref="#R"><strong>R</strong></a> | <ahref="#S"><strong>S</strong></a> | <ahref="#U"><strong>U</strong></a> | <ahref="#V"><strong>V</strong></a>
4646

4747
<hr/>
4848

@@ -105,6 +105,13 @@ <h2 id="I">I</h2>
105105
<dt><ahref="libhttplib2.html#httplib2.Http.ignore_etag">ignore_etag (httplib2.Http attribute)</a></dt></dl></td><tdwidth="33%" valign="top"><dl>
106106
</dl></td></tr></table>
107107

108+
<h2id="O">O</h2>
109+
<tablewidth="100%" class="indextable"><tr><tdwidth="33%" valign="top">
110+
<dl>
111+
112+
<dt><ahref="libhttplib2.html#httplib2.Http.optimistic_concurrency_methods">optimistic_concurrency_methods (httplib2.Http attribute)</a></dt></dl></td><tdwidth="33%" valign="top"><dl>
113+
</dl></td></tr></table>
114+
108115
<h2id="P">P</h2>
109116
<tablewidth="100%" class="indextable"><tr><tdwidth="33%" valign="top">
110117
<dl>
@@ -181,7 +188,7 @@ <h3>Navigation</h3>
181188
</div>
182189
<divclass="footer">
183190
&copy; Copyright 2008, Joe Gregorio.
184-
Last updated on Sep 05, 2008.
191+
Last updated on Sep 06, 2008.
185192
Created using <ahref="http://sphinx.pocoo.org/">Sphinx</a>.
186193
</div>
187194
</body>

‎doc/html/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h3>Navigation</h3>
128128
</div>
129129
<divclass="footer">
130130
&copy; Copyright 2008, Joe Gregorio.
131-
Last updated on Sep 05, 2008.
131+
Last updated on Sep 06, 2008.
132132
Created using <ahref="http://sphinx.pocoo.org/">Sphinx</a>.
133133
</div>
134134
</body>

‎doc/html/libhttplib2.html‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,15 @@ <h1 id="module-httplib2"><tt class="xref docutils literal"><span class="pre">htt
255255
<p>If <ttclass="xref docutils literal"><spanclass="pre">False</span></tt>, then exceptions will be thrown.</p>
256256
</dd></dl>
257257

258+
<dlclass="attribute">
259+
<dtid="httplib2.Http.optimistic_concurrency_methods">
260+
<!--[httplib2.Http.optimistic_concurrency_methods]--><ttclass="descclassname">Http.</tt><ttclass="descname">optimistic_concurrency_methods</tt><aclass="headerlink" href="#httplib2.Http.optimistic_concurrency_methods" title="Permalink to this definition"></a></dt>
261+
<dd>By default a list that only contains &#8220;PUT&#8221;, this attribute
262+
controls which methods will get &#8216;if-match&#8217; headers attached
263+
to them from cached responses with etags. You can append
264+
new items to this list to add new methods that should
265+
get this support, such as &#8220;PATCH&#8221;.</dd></dl>
266+
258267
<dlclass="attribute">
259268
<dtid="httplib2.Http.ignore_etag">
260269
<!--[httplib2.Http.ignore_etag]--><ttclass="descclassname">Http.</tt><ttclass="descname">ignore_etag</tt><aclass="headerlink" href="#httplib2.Http.ignore_etag" title="Permalink to this definition"></a></dt>
@@ -434,7 +443,7 @@ <h3>Navigation</h3>
434443
</div>
435444
<divclass="footer">
436445
&copy; Copyright 2008, Joe Gregorio.
437-
Last updated on Sep 05, 2008.
446+
Last updated on Sep 06, 2008.
438447
Created using <ahref="http://sphinx.pocoo.org/">Sphinx</a>.
439448
</div>
440449
</body>

‎doc/html/modindex.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h3>Navigation</h3>
9090
</div>
9191
<divclass="footer">
9292
&copy; Copyright 2008, Joe Gregorio.
93-
Last updated on Sep 05, 2008.
93+
Last updated on Sep 06, 2008.
9494
Created using <ahref="http://sphinx.pocoo.org/">Sphinx</a>.
9595
</div>
9696
</body>

‎doc/html/search.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h3>Navigation</h3>
8080
</div>
8181
<divclass="footer">
8282
&copy; Copyright 2008, Joe Gregorio.
83-
Last updated on Sep 05, 2008.
83+
Last updated on Sep 06, 2008.
8484
Created using <ahref="http://sphinx.pocoo.org/">Sphinx</a>.
8585
</div>
8686
</body>

‎doc/html/searchindex.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[["index","libhttplib2"],["The httplib2 Library","<tt class=\"docutils literal docutils literal\"><span class=\"pre\">httplib2</span></tt> A comprehensive HTTP client library."],{"all":[1],"code":[1],"chain":[1],"suno":[1],"go":[1],"follow":[1],"privat":[1],"tt":[1],"readabl":[1],"to":[0,1],"those":[1],"sent":[1],"liter":[1],"everi":[1],"string":[1],"fals":[1],"unfamiliar":[1],"veri":[1],"affect":[1],"force_exception_to_status_cod":[1],"level":[1],"list":[1],"try":[1],"item":[1],"refer":[1],"pleas":[1],"impli":[1],"direct":[0],"tex":[1],"second":[1],"pass":[1],"13t18":[1],"even":[1],"index":[0,1],"what":[1],"section":[1],"current":[1],"delet":[1],"version":[1],"new":[1],"method":[1],"funtion":[1],"redirect":[0,1],"deriv":[1],"gener":[1],"here":[1],"bodi":[1],"address":[1],"redirectmissingloc":[1],"ignore_etag":[1],"standard":[1],"modifi":[1],"valu":[1],"refmodindex":[1],"search":[0],"respon":[1],"30":[1],"memcach":[1],"portabl":[1],"amount":[1],"excdesc":[1],"implement":[1],"macintosh":[1],"extra":[1],"appli":[1],"modul":[0,1],"keyfil":[1],"filenam":[1],"unix":[1],"kei":[1],"from":[1],"describ":[1],"0":[0,1],"mydir":[1],"by":[0,1],"massag":[1],"call":[1],"type":[1],"more":[1],"flat":[1],"python":[1],"trail":[1],"indic":[0,1],"known":[1],"cach":[0,1],"must":[1],"none":[1],"hmacdigest":[1],"unimplementedhmacdigestauthoptionerror":[1],"can":[0,1],"root":[0],"aliv":[0,1],"uncom":[1],"control":[1],"claim":[1],"quickstart":[0],"give":[1],"process":[1],"challeng":[1],"templat":[1],"aaaa":[1],"sourc":[1],"onlin":[1],"phrase":[1],"occur":[1],"multipl":[1],"hoc":[1],"anoth":[1],"1":[1],"instead":[1],"simpl":[1],"unabl":[1],"map":[1],"mar":[0],"resourc":[1],"after":[1],"tact":[1],"befor":[1],"mac":[1],"date":[0],"such":[1],"underscor":[1],"data":[1],"unreserv":[1],"a":[0,1],"short":[1],"attempt":[1],"ssl":[1],"credenti":[1],"robot":[1],"or":[1],"inform":[1],"preced":[1],"so":[1],"allow":[1],"shadi":[1],"over":[1],"becaus":[1],"3xx":[1],"through":[1],"still":[1],"mainli":[1],"digest":[1],"paramet":[1],"27":[0],"uuid":[1],"platform":[1],"window":[1],"html":[1],"401":[1],"comprehens":[0,1],"then":[1],"failedtodecompresscont":[1],"return":[1],"thei":[1],"handl":[0,1],"safe":[1],"mention":[1],"httplib2":[0,1],"not":[1],"now":[1],"gregorio":[0],"80da344efa6a":[1],"httplib":[1],"name":[1],"edit":[1],"authent":[0,1],"separ":[1],"timeout":[1],"each":[1],"debug":[1],"found":[1],"updat":[1],"mean":[1],"compil":[1],"domain":[1],"follow_redirect":[1],"meta":[1],"connect":[1],"our":[1],"variabl":[1],"urlencod":[1],"publish":[1],"content":[0,1],"etag":[1],"adapt":[0],"rel":[1],"debuglevel":[1],"print":[1],"fred":[1],"reason":[1],"base":[1],"dictionari":[1],"put":[1],"org":[1],"thrown":[1],"omit":[1],"keep":[0,1],"turn":[1],"isn":[1],"principl":[1],"caprici":[1],"first":[1],"oper":[1],"there":[1],"certfil":[1],"directli":[1],"onc":[1],"number":[1],"restrict":[1],"mai":[1],"instruct":[1],"alreadi":[1],"least":[0,1],"blank":[1],"oppos":[1],"open":[1],"given":[1],"sometim":[1],"messag":[1],"2":[1],"master":[0],"statement":[1],"john":[1],"final":[1],"store":[1],"xmln":[1],"option":[1],"that":[0,1],"tool":[1],"copi":[1],"specifi":[1],"cfb8":[1],"part":[1],"checkout":[1],"than":[1],"httplib2error":[1],"kind":[0],"12":[1],"14":[0],"16":[0],"provid":[1],"remov":[1],"were":[1],"markup":[1],"pre":[1],"sai":[1],"arg":[1],"argument":[1],"manner":[1],"have":[1],"tabl":[0],"need":[1],"classdesc":[1],"built":[1],"lib":[1],"client":[0,1],"note":[1],"also":[1],"without":[1],"take":[1],"which":[1],"environ":[1],"singl":[1],"simplifi":[1],"begin":[1],"normal":[1],"object":[0,1],"reach":[1],"class":[1],"07":[0],"latex":[1],"doc":[1],"urn":[1],"request":[1],"uri":[1],"doe":[1],"determin":[1],"text":[1],"unimplementeddigestauthoptionerror":[1],"xml":[1],"absolut":[1],"onli":[1],"locat":[1],"modnam":[1],"with":[1],"written":[1],"should":[0,1],"dict":[1],"8":[0],"do":[1],"bitwork":[1],"get":[1],"filecach":[1],"nativ":[1],"123":[1],"report":[1],"requir":[1],"h":[1],"whenev":[1],"public":[1],"stuff":[1],"contain":[0,1],"x":[1],"where":[1],"certif":[1],"set":[1],"we":[1],"see":[1],"w3":[1],"respons":[0,1],"fail":[1],"statu":[1],"detect":[1],"wa":[1],"urllib":[1],"3":[1],"import":[1],"entiti":[1],"mynam":[1],"altern":[1],"accord":[1],"extend":[1],"numer":[1],"entir":[1],"joe":[0],"come":[1],"addit":[1],"both":[1],"c":[1],"last":[1],"etc":[1],"s":[1],"instanc":[1],"mani":[0],"com":[1],"comment":[1],"and":[0,1],"point":[1],"overview":[1],"header":[1],"colon":[1],"prologu":[1],"ultim":[1],"three":[1],"been":[1],"compon":[1],"basic":[1],"popul":[1],"4":[0,1],"ani":[1],"assert":[1],"understand":[1],"an":[1],"present":[1],"case":[1],"these":[1],"plain":[1],"as":[1],"will":[1],"defin":[1],"error":[1],"02z":[1],"4ebb":[1],"subsect":[1],"dir_nam":[1],"fill":[1],"is":[0,1],"it":[0,1],"mypasswd":[1],"good":[1],"follow_all_redirect":[1],"in":[1],"id":[1],"if":[1],"author":[0,1],"perform":[1],"insofar":[1],"satisfi":[1],"cert":[1],"same":[1],"member":[1],"add_certif":[1],"complex":[1],"document":[0,1],"complet":[0,1],"http":[0,1],"rfc822":[1],"mytyp":[1],"decompress":[1],"rais":[1],"user":[1],"chang":[1],"lower":[1],"appropri":[1],"i":[1],"entri":[1],"thu":[0],"exampl":[0,1],"add_credenti":[1],"thi":[0,1],"choos":[1],"gzip":[1],"the":[0,1],"refstmodindex":[1],"construct":[1],"protocol":[1],"declaremodul":[1],"just":[1],"resp":[1],"human":[1],"flavor":[1],"httprespons":[1],"except":[1],"add":[1],"valid":[1],"funcdesc":[1],"match":[1],"applic":[1],"format":[1],"safenam":[1],"password":[1],"you":[0,1],"connection_typ":[1],"redirectlimit":[1],"like":[0,1],"specif":[1],"servernotfounderror":[1],"docutil":[1],"manual":[1],"resolv":[1],"server":[1],"collect":[1],"t":[1],"amok":[1],"page":[0],"encount":[1],"www":[1],"deal":[1],"200":[1],"suppli":[1],"some":[1],"back":[1],"mod_nam":[1],"toctre":[0],"datadesc":[1],"librari":[0,1],"clear_credenti":[1],"for":[1],"subclass":[1],"pem":[1],"leav":[1],"condit":[1],"either":[1],"be":[1],"previou":[1],"run":[1],"power":[1],"compress":[0,1],"broken":[1],"host":[1],"refbimodindex":[1],"post":[1],"refexmodindex":[1],"on":[0,1],"deflat":[1],"socket":[1],"of":[0,1],"irix":[1],"default_max_redirect":[1],"fromcach":[1],"constructor":[1],"produc":[1],"block":[1],"own":[1],"into":[1],"exceed":[1],"automat":[1],"your":[0,1],"processor":[1],"span":[1],"wai":[1],"support":[1],"memberdesc":[1],"avail":[1],"lost":[1],"interfac":[1],"includ":[1],"lot":[1],"function":[1],"head":[1],"form":[1],"tupl":[1],"but":[0,1],"atom":[1],"sphinx":[0],"line":[1],"ha":[1],"true":[1],"info":[1],"made":[1],"possibl":[1],"default":[1],"wish":[1],"maximum":[1],"us":[1],"below":[1],"problem":[1],"1225c695":[1],"httpconnect":[1],"featur":[1],"ad":[1],"creat":[0,1],"abstract":[0],"repres":[1],"chap":[1],"ar":[1],"exist":[1],"at":[0,1],"file":[0,1],"relativeurierror":[1],"methoddesc":[1],"probabl":[1],"11":[1],"no":[1],"titl":[1],"when":[1],"detail":[1],"other":[1],"5":[1],"presum":[1],"time":[1],"mymodul":[1],"lane":[1],"e":[1],"algorithm":[1],"directori":[1],"2003":[1],"wsse":[1],"ignor":[1],"2007":[0],"2005":[1],"2008":[0]}]
1+
[["index","libhttplib2"],["The httplib2 Library","<tt class=\"docutils literal docutils literal\"><span class=\"pre\">httplib2</span></tt> A comprehensive HTTP client library."],{"all":[1],"code":[1],"chain":[1],"suno":[1],"go":[1],"follow":[1],"privat":[1],"tt":[1],"readabl":[1],"0":[0,1],"present":[1],"sent":[1],"liter":[1],"everi":[1],"string":[1],"fals":[1],"unfamiliar":[1],"veri":[1],"affect":[1],"wa":[1],"force_exception_to_status_cod":[1],"level":[1],"list":[1],"try":[1],"item":[1],"pleas":[1],"impli":[1],"direct":[0],"tex":[1],"second":[1],"pass":[1],"13t18":[1],"append":[1],"even":[1],"index":[0,1],"what":[1],"section":[1],"current":[1],"delet":[1],"version":[1],"new":[1],"method":[1],"funtion":[1],"xml":[1],"deriv":[1],"gener":[1],"here":[1],"bodi":[1],"address":[1],"redirectmissingloc":[1],"ignore_etag":[1],"fred":[1],"modifi":[1],"valu":[1],"refmodindex":[1],"search":[0],"respon":[1],"30":[1],"memcach":[1],"amount":[1],"excdesc":[1],"implement":[1],"macintosh":[1],"extra":[1],"appli":[1],"modul":[0,1],"keyfil":[1],"filenam":[1],"unix":[1],"kei":[1],"from":[1],"describ":[1],"to":[0,1],"mydir":[1],"refexmodindex":[1],"massag":[1],"call":[1],"type":[1],"more":[1],"flat":[1],"trail":[1],"indic":[0,1],"known":[1],"cach":[0,1],"must":[1],"none":[1],"hmacdigest":[1],"optimistic_concurrency_method":[1],"unimplementedhmacdigestauthoptionerror":[1],"can":[0,1],"root":[0],"aliv":[0,1],"follow_all_redirect":[1],"control":[1],"claim":[1],"quickstart":[0],"give":[1],"process":[1],"challeng":[1],"templat":[1],"aaaa":[1],"sourc":[1],"onlin":[1],"phrase":[1],"occur":[1],"multipl":[1],"hoc":[1],"anoth":[1],"1":[1],"instead":[1],"simpl":[1],"unabl":[1],"follow_redirect":[1],"mar":[0],"resourc":[1],"after":[1],"tact":[1],"befor":[1],"mac":[1],"mai":[1],"such":[1],"underscor":[1],"data":[1],"unreserv":[1],"a":[0,1],"short":[1],"attempt":[1],"nativ":[1],"credenti":[1],"robot":[1],"produc":[1],"inform":[1],"preced":[1],"environ":[1],"allow":[1],"shadi":[1],"over":[1],"becaus":[1],"report":[1],"through":[1],"still":[1],"mainli":[1],"digest":[1],"paramet":[1],"27":[0],"uuid":[1],"add_certif":[1],"platform":[1],"window":[1],"complex":[1],"401":[1],"comprehens":[0,1],"then":[1],"them":[1],"failedtodecompresscont":[1],"return":[1],"thei":[1],"handl":[0,1],"safe":[1],"mention":[1],"httplib2":[0,1],"not":[1],"now":[1],"gregorio":[0],"80da344efa6a":[1],"httplib":[1],"name":[1],"edit":[1],"authent":[0,1],"separ":[1],"timeout":[1],"each":[1],"debug":[1],"found":[1],"updat":[1],"mean":[1],"compil":[1],"domain":[1],"map":[1],"meta":[1],"connect":[1],"our":[1],"variabl":[1],"urlencod":[1],"publish":[1],"content":[0,1],"etag":[1],"adapt":[0],"rel":[1],"debuglevel":[1],"print":[1],"standard":[1],"reason":[1],"base":[1],"dictionari":[1],"put":[1],"org":[1],"thrown":[1],"omit":[1],"keep":[0,1],"turn":[1],"isn":[1],"principl":[1],"caprici":[1],"first":[1],"oper":[1],"memberdesc":[1],"certfil":[1],"directli":[1],"onc":[1],"number":[1],"restrict":[1],"date":[0],"instruct":[1],"alreadi":[1],"least":[0,1],"blank":[1],"oppos":[1],"open":[1],"given":[1],"sometim":[1],"messag":[1],"t":[1],"attach":[1],"2":[1],"master":[0],"statement":[1],"john":[1],"final":[1],"store":[1],"xmln":[1],"option":[1],"that":[0,1],"tool":[1],"copi":[1],"specifi":[1],"cfb8":[1],"part":[1],"than":[1],"httplib2error":[1],"kind":[0],"12":[1],"14":[0],"whenev":[1],"provid":[1],"remov":[1],"exampl":[0,1],"were":[1],"thu":[0],"pre":[1],"sai":[1],"arg":[1],"argument":[1],"manner":[1],"have":[1],"tabl":[0],"need":[1],"classdesc":[1],"probabl":[1],"built":[1],"lib":[1],"note":[1],"also":[1],"without":[1],"take":[1],"which":[1],"so":[1],"singl":[1],"simplifi":[1],"begin":[1],"normal":[1],"object":[0,1],"reach":[1],"class":[1],"latex":[1],"refstmodindex":[1],"doc":[1],"urn":[1],"request":[1],"uri":[1],"doe":[1],"determin":[1],"text":[1],"unimplementeddigestauthoptionerror":[1],"redirect":[0,1],"absolut":[1],"onli":[1],"locat":[1],"just":[1],"true":[1],"written":[1],"should":[0,1],"public":[1],"dict":[1],"8":[0],"do":[1],"bitwork":[1],"get":[1],"filecach":[1],"ssl":[1],"123":[1],"3xx":[1],"requir":[1],"h":[1],"16":[0],"patch":[1],"stuff":[1],"contain":[0,1],"x":[1],"attribut":[1],"where":[1],"certif":[1],"set":[1],"we":[1],"see":[1],"w3":[1],"respons":[0,1],"fail":[1],"statu":[1],"detect":[1],"07":[0],"urllib":[1],"3":[1],"import":[1],"entiti":[1],"mynam":[1],"altern":[1],"accord":[1],"extend":[1],"numer":[1],"entir":[1],"joe":[0],"come":[1],"addit":[1],"both":[1],"c":[1],"last":[1],"etc":[1],"s":[1],"instanc":[1],"mani":[0],"com":[1],"comment":[1],"and":[0,1],"point":[1],"overview":[1],"header":[1],"colon":[1],"prologu":[1],"ultim":[1],"three":[1],"been":[1],"compon":[1],"basic":[1],"popul":[1],"funcdesc":[1],"wish":[1],"ani":[1],"assert":[1],"understand":[1],"repres":[1],"those":[1],"case":[1],"these":[1],"plain":[1],"chap":[1],"will":[1],"defin":[1],"error":[1],"02z":[1],"4ebb":[1],"subsect":[1],"dir_nam":[1],"is":[0,1],"it":[0,1],"mypasswd":[1],"good":[1],"uncom":[1],"in":[1],"id":[1],"if":[1],"author":[0,1],"perform":[1],"insofar":[1],"satisfi":[1],"cert":[1],"same":[1],"member":[1],"python":[1],"html":[1],"document":[0,1],"complet":[0,1],"http":[0,1],"rfc822":[1],"mytyp":[1],"decompress":[1],"rais":[1],"user":[1],"chang":[1],"lower":[1],"appropri":[1],"i":[1],"entri":[1],"markup":[1],"client":[0,1],"add_credenti":[1],"thi":[0,1],"choos":[1],"gzip":[1],"the":[0,1],"portabl":[1],"construct":[1],"protocol":[1],"declaremodul":[1],"modnam":[1],"resp":[1],"human":[1],"flavor":[1],"password":[1],"except":[1],"add":[1],"other":[1],"4":[0,1],"match":[1],"applic":[1],"format":[1],"safenam":[1],"httprespons":[1],"presum":[1],"connection_typ":[1],"redirectlimit":[1],"like":[0,1],"specif":[1],"servernotfounderror":[1],"docutil":[1],"manual":[1],"resolv":[1],"server":[1],"collect":[1],"either":[1],"amok":[1],"page":[0],"encount":[1],"www":[1],"deal":[1],"200":[1],"suppli":[1],"some":[1],"back":[1],"mod_nam":[1],"toctre":[0],"datadesc":[1],"librari":[0,1],"clear_credenti":[1],"for":[1],"subclass":[1],"pem":[1],"leav":[1],"condit":[1],"refer":[1],"be":[1],"previou":[1],"run":[1],"power":[1],"compress":[0,1],"broken":[1],"host":[1],"refbimodindex":[1],"post":[1],"by":[0,1],"on":[0,1],"deflat":[1],"socket":[1],"of":[0,1],"irix":[1],"default_max_redirect":[1],"fromcach":[1],"constructor":[1],"or":[1],"block":[1],"own":[1],"into":[1],"exceed":[1],"automat":[1],"your":[0,1],"processor":[1],"span":[1],"wai":[1],"support":[1],"there":[1],"avail":[1],"lost":[1],"interfac":[1],"includ":[1],"lot":[1],"function":[1],"head":[1],"form":[1],"tupl":[1],"but":[0,1],"atom":[1],"e":[1],"line":[1],"ha":[1],"with":[1],"info":[1],"made":[1],"possibl":[1],"default":[1],"checkout":[1],"maximum":[1],"us":[1],"below":[1],"problem":[1],"1225c695":[1],"httpconnect":[1],"featur":[1],"ad":[1],"creat":[0,1],"abstract":[0],"an":[1],"as":[1],"ar":[1],"exist":[1],"at":[0,1],"file":[0,1],"relativeurierror":[1],"methoddesc":[1],"fill":[1],"11":[1],"no":[1],"titl":[1],"when":[1],"detail":[1],"valid":[1],"5":[1],"you":[0,1],"2005":[1],"mymodul":[1],"lane":[1],"sphinx":[0],"algorithm":[1],"directori":[1],"2003":[1],"wsse":[1],"ignor":[1],"2007":[0],"time":[1],"2008":[0]}]

‎doc/libhttplib2.rst‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,14 @@ Http Objects
299299
If ``False``, then exceptions will be thrown.
300300

301301

302+
.. attribute:: Http.optimistic_concurrency_methods
303+
304+
By default a list that only contains "PUT", this attribute
305+
controls which methods will get 'if-match' headers attached
306+
to them from cached responses with etags. You can append
307+
new items to this list to add new methods that should
308+
get this support, such as "PATCH".
309+
302310
.. attribute:: Http.ignore_etag
303311

304312
Defaults to ``False``. If ``True``, then any etags present in the cached

0 commit comments

Comments
(0)