We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73006e7 commit df833deCopy full SHA for df833de
src/main/java/co/stateful/RtSttc.java
@@ -36,6 +36,7 @@
36
import com.jcabi.http.request.JdkRequest;
37
import com.jcabi.http.response.RestResponse;
38
import com.jcabi.http.response.XmlResponse;
39
+import com.jcabi.http.wire.CachingWire;
40
import com.jcabi.http.wire.OneMinuteWire;
41
import com.jcabi.http.wire.RetryWire;
42
import com.jcabi.http.wire.VerboseWire;
@@ -97,6 +98,7 @@ public RtSttc(final URN urn, final String token) {
97
98
.through(OneMinuteWire.class)
99
.through(RetryWire.class)
100
.through(VerboseWire.class)
101
+ .through(CachingWire.class, "((POST|PUT|PATCH) .*|.*\\?.*)")
102
.header("X-Sttc-URN", urn.toString())
103
.header("X-Sttc-Token", token)
104
.header(HttpHeaders.ACCEPT, MediaType.TEXT_XML)
0 commit comments