@ThreadSafe @LevelUpApi(contract=INTERNAL) public final class NetworkConnection extends Object
Via the send(Context, AbstractRequest)
method, this class takes in
AbstractRequest
objects, sends them over the network, and returns
StreamingResponse
objects.
Modifier and Type | Method and Description |
---|---|
static StreamingResponse |
send(Context context,
AbstractRequest request)
Send the
AbstractRequest using HTTP and create a AbstractResponse . |
public static StreamingResponse send(Context context, AbstractRequest request)
AbstractRequest
using HTTP and create a AbstractResponse
.context
- Application Context.request
- the request to send.AbstractResponse
received.