Package io.getstream.core.http
Class Request.Builder
- java.lang.Object
-
- io.getstream.core.http.Request.Builder
-
- Enclosing class:
- Request
public static final class Request.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Request.Builder
addQueryParameter(java.lang.String key, java.lang.String value)
Request
build()
Request.Builder
delete()
Request.Builder
get()
Request.Builder
multiPartPost(java.io.File body)
Request.Builder
multiPartPost(java.lang.String fileName, byte[] body)
Request.Builder
post(byte[] body)
Request.Builder
put(byte[] body)
Request.Builder
token(Token token)
Request.Builder
url(java.net.URL url)
-
-
-
Method Detail
-
token
public Request.Builder token(Token token)
-
url
public Request.Builder url(java.net.URL url) throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
-
addQueryParameter
public Request.Builder addQueryParameter(java.lang.String key, java.lang.String value)
-
get
public Request.Builder get()
-
post
public Request.Builder post(byte[] body)
-
multiPartPost
public Request.Builder multiPartPost(java.lang.String fileName, byte[] body)
-
multiPartPost
public Request.Builder multiPartPost(java.io.File body)
-
put
public Request.Builder put(byte[] body)
-
delete
public Request.Builder delete()
-
build
public Request build() throws java.net.MalformedURLException, java.net.URISyntaxException
- Throws:
java.net.MalformedURLException
java.net.URISyntaxException
-
-