Class JSONRequest
java.lang.Object
io.github.emcw.utils.http.JSONRequest
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable com.google.gson.JsonElementSend GET request and get a JSON response back.static @Nullable com.google.gson.JsonElementSend POST request with a body and get a JSON response back. 
- 
Field Details
- 
contentType
public static final okhttp3.MediaType contentType 
 - 
 - 
Constructor Details
- 
JSONRequest
public JSONRequest() 
 - 
 - 
Method Details
- 
sendGet
Send GET request and get a JSON response back. - 
sendPost
 
 -