Package com.mojang.realmsclient.client
Class Request<T extends Request<T>>
java.lang.Object
com.mojang.realmsclient.client.Request<T>
- Direct Known Subclasses:
Request.Delete
,Request.Get
,Request.Post
,Request.Put
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected T
connect()
void
static void
cookie
(HttpURLConnection p_224967_0_, String p_224967_1_, String p_224967_2_) static Request<?>
private void
dispose()
protected abstract T
static Request<?>
static Request<?>
static String
getHeader
(HttpURLConnection p_224961_0_, String p_224961_1_) int
static int
getRetryAfterHeader
(HttpURLConnection p_224964_0_) static Request<?>
static Request<?>
static Request<?>
static Request<?>
private String
read
(InputStream p_224954_1_) int
text()
-
Field Details
-
connection
-
connected
private boolean connected -
url
-
-
Constructor Details
-
Request
-
-
Method Details
-
cookie
-
cookie
-
getRetryAfterHeader
public int getRetryAfterHeader() -
getRetryAfterHeader
-
responseCode
public int responseCode() -
text
-
read
- Throws:
IOException
-
dispose
private void dispose() -
connect
-
doConnect
-
get
-
get
-
post
-
post
-
delete
-
put
-
put
-
getHeader
-
getHeader
-