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

public abstract class Request<T extends Request<T>> extends Object
  • Field Details

  • Constructor Details

    • Request

      public Request(String p_87310_, int p_87311_, int p_87312_)
  • Method Details

    • cookie

      public void cookie(String p_87323_, String p_87324_)
    • cookie

      public static void cookie(HttpURLConnection p_87336_, String p_87337_, String p_87338_)
    • addSnapshotHeader

      public void addSnapshotHeader(boolean p_309559_)
    • getRetryAfterHeader

      public int getRetryAfterHeader()
    • getRetryAfterHeader

      public static int getRetryAfterHeader(HttpURLConnection p_87331_)
    • responseCode

      public int responseCode()
    • text

      public String text()
    • read

      private String read(@Nullable InputStream p_87315_) throws IOException
      Throws:
      IOException
    • dispose

      private void dispose()
    • connect

      protected T connect()
    • doConnect

      protected abstract T doConnect()
    • get

      public static Request<?> get(String p_87317_)
    • get

      public static Request<?> get(String p_87319_, int p_87320_, int p_87321_)
    • post

      public static Request<?> post(String p_87343_, String p_87344_)
    • post

      public static Request<?> post(String p_87326_, String p_87327_, int p_87328_, int p_87329_)
    • delete

      public static Request<?> delete(String p_87341_)
    • put

      public static Request<?> put(String p_87354_, String p_87355_)
    • put

      public static Request<?> put(String p_87346_, String p_87347_, int p_87348_, int p_87349_)
    • getHeader

      public String getHeader(String p_87352_)
    • getHeader

      public static String getHeader(HttpURLConnection p_87333_, String p_87334_)