Package com.jcabi.http.wire
Class AbstractHeaderBasedCachingWire
java.lang.Object
com.jcabi.http.wire.AbstractHeaderBasedCachingWire
- All Implemented Interfaces:
Wire
- Direct Known Subclasses:
ETagCachingWire,LastModifiedCachingWire
This is the base class to handle http responses with 304 state.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionfinal Responsesend(Request req, String home, String method, Collection<Map.Entry<String, String>> headers, InputStream content, int connect, int read) Send request and return response.
-
Method Details
-
send
public final Response send(Request req, String home, String method, Collection<Map.Entry<String, String>> headers, InputStream content, int connect, int read) throws IOExceptionDescription copied from interface:WireSend request and return response.- Specified by:
sendin interfaceWire- Parameters:
req- Requesthome- URI to fetchmethod- HTTP methodheaders- Headerscontent- HTTP bodyconnect- The connect timeoutread- The read timeout- Returns:
- Response obtained
- Throws:
IOException- if fails
-