Skip to content

Commit df833de

Browse files
author
Yegor Bugayenko
committed
#9 CachingWire
1 parent 73006e7 commit df833de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/co/stateful/RtSttc.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import com.jcabi.http.request.JdkRequest;
3737
import com.jcabi.http.response.RestResponse;
3838
import com.jcabi.http.response.XmlResponse;
39+
import com.jcabi.http.wire.CachingWire;
3940
import com.jcabi.http.wire.OneMinuteWire;
4041
import com.jcabi.http.wire.RetryWire;
4142
import com.jcabi.http.wire.VerboseWire;
@@ -97,6 +98,7 @@ public RtSttc(final URN urn, final String token) {
9798
.through(OneMinuteWire.class)
9899
.through(RetryWire.class)
99100
.through(VerboseWire.class)
101+
.through(CachingWire.class, "((POST|PUT|PATCH) .*|.*\\?.*)")
100102
.header("X-Sttc-URN", urn.toString())
101103
.header("X-Sttc-Token", token)
102104
.header(HttpHeaders.ACCEPT, MediaType.TEXT_XML)

0 commit comments

Comments
 (0)