/** * Set a Multipart Form url encoded body to this request saving it as a raw body. * * @param data the multipart-form parameters * @param temporaryFileCreator the temporary file creator. * @param mat a Akka Streams Materializer * @return the modified builder * * @deprecated Deprecated as of 2.7.0. Renamed to {@link #bodyRaw(List, Files.TemporaryFileCreator, Materializer)}. */ @Deprecated public RequestBuilder bodyMultipart(List<MultipartFormData.Part<Source<ByteString, ?>>> data, Files.TemporaryFileCreator temporaryFileCreator, Materializer mat) { return bodyRaw(data, temporaryFileCreator, mat); }
/** * Set a Multipart Form url encoded body to this request saving it as a raw body. * * @param data the multipart-form parameters * @param temporaryFileCreator the temporary file creator. * @param mat a Akka Streams Materializer * @return the modified builder * * @deprecated Deprecated as of 2.7.0. Renamed to {@link #bodyRaw(List, Files.TemporaryFileCreator, Materializer)}. */ @Deprecated public RequestBuilder bodyMultipart(List<MultipartFormData.Part<Source<ByteString, ?>>> data, Files.TemporaryFileCreator temporaryFileCreator, Materializer mat) { return bodyRaw(data, temporaryFileCreator, mat); }
/** * Set a Multipart Form url encoded body to this request saving it as a raw body. * * @param data the multipart-form parameters * @param temporaryFileCreator the temporary file creator. * @param mat a Akka Streams Materializer * @return the modified builder * * @deprecated Deprecated as of 2.7.0. Renamed to {@link #bodyRaw(List, Files.TemporaryFileCreator, Materializer)}. */ @Deprecated public RequestBuilder bodyMultipart(List<MultipartFormData.Part<Source<ByteString, ?>>> data, Files.TemporaryFileCreator temporaryFileCreator, Materializer mat) { return bodyRaw(data, temporaryFileCreator, mat); }
/** * Set a Binary Data to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/octet-stream</tt>. * * @param data the Binary Data * @param tempFileCreator the temporary file creator for binary data. * @return the modified builder */ public RequestBuilder bodyRaw(byte[] data, Files.TemporaryFileCreator tempFileCreator) { return bodyRaw(ByteString.fromArray(data), tempFileCreator); }
/** * Set a Binary Data to this request using a singleton temporary file creator. * The <tt>Content-Type</tt> header of the request is set to <tt>application/octet-stream</tt>. * * @param data the Binary Data * @return the modified builder */ public RequestBuilder bodyRaw(byte[] data) { Files.TemporaryFileCreator tempFileCreator = Files.singletonTemporaryFileCreator(); return bodyRaw(ByteString.fromArray(data), tempFileCreator); }
/** * Set a Binary Data to this request using a singleton temporary file creator. * The <tt>Content-Type</tt> header of the request is set to <tt>application/octet-stream</tt>. * * @param data the Binary Data * @return the modified builder */ public RequestBuilder bodyRaw(byte[] data) { Files.TemporaryFileCreator tempFileCreator = Files.singletonTemporaryFileCreator(); return bodyRaw(ByteString.fromArray(data), tempFileCreator); }
/** * Set a Binary Data to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/octet-stream</tt>. * * @param data the Binary Data * @param tempFileCreator the temporary file creator for binary data. * @return the modified builder */ public RequestBuilder bodyRaw(byte[] data, Files.TemporaryFileCreator tempFileCreator) { return bodyRaw(ByteString.fromArray(data), tempFileCreator); }
/** * Set a Binary Data to this request using a singleton temporary file creator. * The <tt>Content-Type</tt> header of the request is set to <tt>application/octet-stream</tt>. * * @param data the Binary Data * @return the modified builder */ public RequestBuilder bodyRaw(byte[] data) { Files.TemporaryFileCreator tempFileCreator = Files.singletonTemporaryFileCreator(); return bodyRaw(ByteString.fromArray(data), tempFileCreator); }
/** * Set a Binary Data to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/octet-stream</tt>. * * @param data the Binary Data * @param tempFileCreator the temporary file creator for binary data. * @return the modified builder */ public RequestBuilder bodyRaw(byte[] data, Files.TemporaryFileCreator tempFileCreator) { return bodyRaw(ByteString.fromArray(data), tempFileCreator); }