header(Map<String, String>) 추가

master
mjkhan21 1 year ago
parent 023a977800
commit 0dc90ed6cc

@ -315,6 +315,16 @@ public class WebClient {
return this; return this;
} }
/**map .
* @param map map
* @return Request
*/
public Request header(Map<String, String> map) {
if (!Assert.isEmpty(map))
map.forEach(this::header);
return this;
}
public Request contentType(ContentType type) { public Request contentType(ContentType type) {
return header("Content-Type", type.type + "; charset=" + charset); return header("Content-Type", type.type + "; charset=" + charset);
} }

Loading…
Cancel
Save