public void asyncPost(final String url, final String mediaType, final Supplier<String> supplier, final Callback callback) {
		requireNonNull(supplier, "A valid supplier expected");
		asyncPostBytes(url, mediaType, () -> ofNullable(supplier.get()).orElse("").getBytes(), callback);
	}
public void asyncPost ( final String url , final String mediaType , final Supplier < String > supplier , final Callback callback ) { requireNonNull ( supplier , "A valid supplier expected" ) ; asyncPostBytes ( url , mediaType , ( ) -> ofNullable ( supplier . get ( ) ) . orElse ( "" ) . getBytes ( ) , callback ) ; }
Posts data to a server via a HTTP POST request.
@param url - URL target of this request
@param mediaType - Content-Type header for this request
@param supplier - supplies the content of this request
@param callback - is called back when the response is readable