@Immutable public final class TrustedWire extends Object implements Wire
This wire ignores :
String html = new JdkRequest("http://goggle.com") .through(TrustedWire.class) .fetch() .body();
The class is immutable and thread-safe.
Constructor and Description |
---|
TrustedWire(Wire wire)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
Response |
send(Request req,
String home,
String method,
Collection<Map.Entry<String,String>> headers,
InputStream content)
Send request and return response.
|
public TrustedWire(Wire wire)
wire
- Original wirepublic Response send(Request req, String home, String method, Collection<Map.Entry<String,String>> headers, InputStream content) throws IOException
Wire
send
in interface Wire
req
- Requesthome
- URI to fetchmethod
- HTTP methodheaders
- Headerscontent
- HTTP bodyIOException
- if failsCopyright © 2012–2015 jcabi.com. All rights reserved.