All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.king.platform.net.http.BuiltClientRequestWithBody Maven / Gradle / Ivy

// Copyright (C) king.com Ltd 2015
// https://github.com/king/king-http-client
// Author: Magnus Gustafsson
// License: Apache 2.0, https://raw.github.com/king/king-http-client/LICENSE-APACHE

package com.king.platform.net.http;


import java.util.function.Supplier;

public interface BuiltClientRequestWithBody extends BaseBuiltClientRequest> {
	/**
	 * Use a specific upload callback for all execution of this request.
	 * UploadCallbacks are executed on the HttpCallbackExecutor
	 *
	 * @param uploadCallback the upload callback
	 * @return this builder
	 */
	BuiltClientRequestWithBody withUploadCallback(UploadCallback uploadCallback);

	/**
	 * Each execution will use a UploadCallback supplied from the supplier.
	 *
	 * @param uploadCallback the upload callback
	 * @return this builder
	 */
	BuiltClientRequestWithBody withUploadCallback(Supplier uploadCallback);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy