public final class Request extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Request.Body |
static class |
Request.HttpMethod |
static class |
Request.Options |
@Deprecated public static Request create(String method, String url, Map<String,Collection<String>> headers, byte[] body, Charset charset)
create(HttpMethod, String, Map, byte[], Charset)
body
and charset
. All parameters must be
effectively immutable, via safe copies, not mutating or otherwise.@Deprecated public static Request create(Request.HttpMethod httpMethod, String url, Map<String,Collection<String>> headers, byte[] body, Charset charset)
httpMethod
- for the request.url
- for the request.headers
- to include.body
- of the request, can be nullcharset
- of the request, can be nullpublic static Request create(Request.HttpMethod httpMethod, String url, Map<String,Collection<String>> headers, byte[] body, Charset charset, RequestTemplate requestTemplate)
httpMethod
- for the request.url
- for the request.headers
- to include.body
- of the request, can be nullcharset
- of the request, can be nullpublic static Request create(Request.HttpMethod httpMethod, String url, Map<String,Collection<String>> headers, Request.Body body, RequestTemplate requestTemplate)
httpMethod
- for the request.url
- for the request.headers
- to include.body
- of the request, can be null@Deprecated public String method()
httpMethod()
public Request.HttpMethod httpMethod()
public String url()
public Map<String,Collection<String>> headers()
@Deprecated public Charset charset()
requestBody()
insteadnew String(req.body(), req.charset())
to access the body
as a String.@Deprecated public byte[] body()
requestBody()
insteadcharset()
public Request.Body requestBody()
@Experimental public RequestTemplate requestTemplate()
Copyright © 2012–2019 OpenFeign. All rights reserved.