public class SimpleHttpClient
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
SimpleHttpClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(java.lang.String aUrl,
int aConnectionTimeoutMs,
int aReadTimeoutMs,
java.lang.String aMethod) |
SimpleHttpResponse |
fetchResponse() |
void |
sendBody(byte[] aBody) |
void |
sendHeader(java.lang.String aName,
java.lang.String aValue) |
public void connect(java.lang.String aUrl,
int aConnectionTimeoutMs,
int aReadTimeoutMs,
java.lang.String aMethod)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void sendHeader(java.lang.String aName,
java.lang.String aValue)
public SimpleHttpResponse fetchResponse() throws java.io.IOException
java.io.IOExceptionpublic void sendBody(byte[] aBody)
throws java.io.IOException
java.io.IOExceptionCopyright © 2020. All Rights Reserved.