Package eu.rekawek.toxiproxy
Class HttpClient
- java.lang.Object
-
- eu.rekawek.toxiproxy.HttpClient
-
public class HttpClient extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdelete(String path)com.google.gson.JsonObjectget(String path)<T> Tget(String path, Class<T> clazz)StringgetPlain(String path)intpost(String path)com.google.gson.JsonObjectpost(String path, com.google.gson.JsonObject data)com.google.gson.JsonObjectpost(String path, String name, boolean value)com.google.gson.JsonObjectpost(String path, String name, float value)com.google.gson.JsonObjectpost(String path, String name, String value)
-
-
-
Method Detail
-
post
public com.google.gson.JsonObject post(String path, String name, float value) throws IOException
- Throws:
IOException
-
post
public com.google.gson.JsonObject post(String path, String name, boolean value) throws IOException
- Throws:
IOException
-
post
public com.google.gson.JsonObject post(String path, String name, String value) throws IOException
- Throws:
IOException
-
getPlain
public String getPlain(String path) throws IOException
- Throws:
IOException
-
get
public com.google.gson.JsonObject get(String path) throws IOException
- Throws:
IOException
-
get
public <T> T get(String path, Class<T> clazz) throws IOException
- Throws:
IOException
-
post
public int post(String path) throws IOException
- Throws:
IOException
-
post
public com.google.gson.JsonObject post(String path, com.google.gson.JsonObject data) throws IOException
- Throws:
IOException
-
delete
public int delete(String path) throws IOException
- Throws:
IOException
-
-