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 .