No parameters can be null except body and charset. All parameters must be effectively immutable, via safe copies, not mutating or otherwise. @deprecated #create(HttpMethod, String, Map, byte[], Charset)
(
String method,
String url,
Map<String, Collection<String>> headers,
byte[] body,
Charset charset)
| 90 | * @deprecated {@link #create(HttpMethod, String, Map, byte[], Charset)} |
| 91 | */ |
| 92 | @Deprecated |
| 93 | public static Request create( |
| 94 | String method, |
| 95 | String url, |
| 96 | Map<String, Collection<String>> headers, |
| 97 | byte[] body, |
| 98 | Charset charset) { |
| 99 | checkNotNull(method, "httpMethod of %s", method); |
| 100 | final HttpMethod httpMethod = HttpMethod.valueOf(method.toUpperCase()); |
| 101 | return create(httpMethod, url, headers, body, charset, null); |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Builds a Request. All parameters must be effectively immutable, via safe copies. |