Class TransportUtil
- java.lang.Object
-
- ai.toloka.client.v1.impl.transport.TransportUtil
-
public class TransportUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TransportUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.http.HttpResponse
executeDelete(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer)
static org.apache.http.HttpResponse
executeGet(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer)
static org.apache.http.HttpResponse
executePatch(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer, java.lang.Object body)
static org.apache.http.HttpResponse
executePost(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer)
static org.apache.http.HttpResponse
executePost(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer, java.io.InputStream bodyStream)
static org.apache.http.HttpResponse
executePost(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer, java.lang.Object body)
static org.apache.http.HttpResponse
executePut(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer, java.lang.Object body)
-
-
-
Method Detail
-
executeGet
public static org.apache.http.HttpResponse executeGet(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer) throws java.io.IOException
- Throws:
java.io.IOException
-
executePost
public static org.apache.http.HttpResponse executePost(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer) throws java.io.IOException
- Throws:
java.io.IOException
-
executePost
public static org.apache.http.HttpResponse executePost(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer, java.lang.Object body) throws java.io.IOException
- Throws:
java.io.IOException
-
executePost
public static org.apache.http.HttpResponse executePost(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer, java.io.InputStream bodyStream) throws java.io.IOException
- Throws:
java.io.IOException
-
executePut
public static org.apache.http.HttpResponse executePut(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer, java.lang.Object body) throws java.io.IOException
- Throws:
java.io.IOException
-
executePatch
public static org.apache.http.HttpResponse executePatch(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer, java.lang.Object body) throws java.io.IOException
- Throws:
java.io.IOException
-
executeDelete
public static org.apache.http.HttpResponse executeDelete(org.apache.http.client.HttpClient client, java.net.URI uri, java.util.function.Consumer<org.apache.http.client.methods.HttpRequestBase> consumer) throws java.io.IOException
- Throws:
java.io.IOException
-
-