com.mojang.realmsclient.client

public abstract class Request<T extends Request<T>>

fhl
com.mojang.realmsclient.client.Request
net.minecraft.class_4346
net.minecraft.client.realms.Request

Field summary

Modifier and TypeField
protected HttpURLConnection
a
connection
field_19596
connection
private boolean
c
connected
field_19598
connected
protected String
b
url
field_19597
url
private static final int
d
DEFAULT_READ_TIMEOUT
field_32096
READ_TIMEOUT
private static final int
e
DEFAULT_CONNECT_TIMEOUT
field_32097
CONNECT_TIMEOUT
private static final String
f
IS_SNAPSHOT_KEY
field_46690
IS_PRERELEASE_HEADER
private static final String
g
COOKIE_KEY
field_46691
COOKIE_HEADER

Constructor summary

ModifierConstructor
public (String url, int connectTimeout, int readTimeout)

Method summary

Modifier and TypeMethod
public void
a(String arg0, String arg1)
cookie(String arg0, String arg1)
method_21042(String arg0, String arg1)
cookie(String key, String value)
public static void
a(HttpURLConnection arg0, String arg1, String arg2)
cookie(HttpURLConnection arg0, String arg1, String arg2)
method_21046(HttpURLConnection arg0, String arg1, String arg2)
cookie(HttpURLConnection connection, String key, String value)
public void
a(boolean arg0)
addSnapshotHeader(boolean arg0)
method_54362(boolean arg0)
prerelease(boolean prerelease)
public int
a()
getRetryAfterHeader()
method_21038()
getRetryAfterHeader()
public static int
a(HttpURLConnection arg0)
getRetryAfterHeader(HttpURLConnection arg0)
method_21044(HttpURLConnection arg0)
getRetryAfterHeader(HttpURLConnection connection)
public int
b()
responseCode()
method_21047()
responseCode()
public String
c()
text()
method_21051()
text()
private String
a(InputStream arg0)
read(InputStream arg0)
method_21039(InputStream arg0)
read(InputStream in)
private void
f()
dispose()
method_21056()
dispose()
protected T
d()
connect()
method_21054()
connect()
protected abstract T
e()
doConnect()
method_21055()
doConnect()
public static Request<?>
a(String arg0)
get(String arg0)
method_21040(String arg0)
get(String url)
public static Request<?>
a(String arg0, int arg1, int arg2)
get(String arg0, int arg1, int arg2)
method_21041(String arg0, int arg1, int arg2)
get(String url, int connectTimeoutMillis, int readTimeoutMillis)
public static Request<?>
b(String arg0, String arg1)
post(String arg0, String arg1)
method_21049(String arg0, String arg1)
post(String uri, String content)
public static Request<?>
a(String arg0, String arg1, int arg2, int arg3)
post(String arg0, String arg1, int arg2, int arg3)
method_21043(String arg0, String arg1, int arg2, int arg3)
post(String uri, String content, int connectTimeoutMillis, int readTimeoutMillis)
public static Request<?>
b(String arg0)
delete(String arg0)
method_21048(String arg0)
delete(String url)
public static Request<?>
c(String arg0, String arg1)
put(String arg0, String arg1)
method_21053(String arg0, String arg1)
put(String url, String content)
public static Request<?>
b(String arg0, String arg1, int arg2, int arg3)
put(String arg0, String arg1, int arg2, int arg3)
method_21050(String arg0, String arg1, int arg2, int arg3)
put(String url, String content, int connectTimeoutMillis, int readTimeoutMillis)
public String
c(String arg0)
getHeader(String arg0)
method_21052(String arg0)
getHeader(String header)
public static String
a(HttpURLConnection arg0, String arg1)
getHeader(HttpURLConnection arg0, String arg1)
method_21045(HttpURLConnection arg0, String arg1)
getHeader(HttpURLConnection connection, String header)