Part.PartMap contentType(@Nullable String type) { if (type != null) put(HttpHeaders.CONTENT_TYPE, checkNotNull(type, "type")); return this; }
Part.PartMap contentType(@Nullable String type) { if (type != null) put(HttpHeaders.CONTENT_TYPE, checkNotNull(type, "type")); return this; }
Part.PartMap contentType(@Nullable String type) { if (type != null) put(HttpHeaders.CONTENT_TYPE, checkNotNull(type, "type")); return this; }
Part.PartMap contentType(@Nullable String type) { if (type != null) put(HttpHeaders.CONTENT_TYPE, checkNotNull(type, "type")); return this; }
static Part.PartMap create(String name, String filename) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"; filename=\"%s\"", checkNotNull(name, "name"), checkNotNull(filename, "filename"))); return map; }
Part.PartMap contentType(@Nullable String type) { if (type != null) put(HttpHeaders.CONTENT_TYPE, checkNotNull(type, "type")); return this; }
Part.PartMap contentType(@Nullable String type) { if (type != null) put(HttpHeaders.CONTENT_TYPE, checkNotNull(type, "type")); return this; }
static Part.PartMap create(String name, String filename) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"; filename=\"%s\"", checkNotNull(name, "name"), checkNotNull(filename, "filename"))); return map; }
static Part.PartMap create(String name) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"", checkNotNull(name, "name"))); return map; }
static Part.PartMap create(String name) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"", checkNotNull(name, "name"))); return map; }
static Part.PartMap create(String name) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"", checkNotNull(name, "name"))); return map; }
static Part.PartMap create(String name) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"", checkNotNull(name, "name"))); return map; }
static Part.PartMap create(String name, String filename) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"; filename=\"%s\"", checkNotNull(name, "name"), checkNotNull(filename, "filename"))); return map; }
static Part.PartMap create(String name) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"", checkNotNull(name, "name"))); return map; }
static Part.PartMap create(String name, String filename) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"; filename=\"%s\"", checkNotNull(name, "name"), checkNotNull(filename, "filename"))); return map; }
static Part.PartMap create(String name) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"", checkNotNull(name, "name"))); return map; }
static Part.PartMap create(String name, String filename) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"; filename=\"%s\"", checkNotNull(name, "name"), checkNotNull(filename, "filename"))); return map; }
static Part.PartMap create(String name, String filename) { Part.PartMap map = new PartMap(); map.put("Content-Disposition", String.format("form-data; name=\"%s\"; filename=\"%s\"", checkNotNull(name, "name"), checkNotNull(filename, "filename"))); return map; }