public class DefaultHttpRequest extends BaseHttpRequest<String>
Constructor and Description |
---|
DefaultHttpRequest(CoreConfiguration config,
Context context,
HttpSender.Method method,
String contentType,
String login,
String password,
int connectionTimeOut,
int socketTimeOut,
Map<String,String> headers) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
asBytes(String content) |
protected String |
getContentType(Context context,
String s) |
configureHeaders, configureHttps, configureTimeouts, createConnection, handleResponse, send, writeContent
public DefaultHttpRequest(@NonNull CoreConfiguration config, @NonNull Context context, @NonNull HttpSender.Method method, @NonNull String contentType, @Nullable String login, @Nullable String password, int connectionTimeOut, int socketTimeOut, @Nullable Map<String,String> headers)
@NonNull protected String getContentType(@NonNull Context context, @NonNull String s)
getContentType
in class BaseHttpRequest<String>
@NonNull protected byte[] asBytes(@NonNull String content) throws IOException
asBytes
in class BaseHttpRequest<String>
IOException