public static void post(String url, HttpConsumer<HttpExchange> endpoint, MediaTypes... mediaTypes) {
        addResource(Methods.POST, url, endpoint, mediaTypes);
    }
public static void post ( String url , HttpConsumer < HttpExchange > endpoint , MediaTypes ... mediaTypes ) { addResource ( Methods . POST , url , endpoint , mediaTypes ) ; }
Define a REST endpoint mapped to HTTP POST

@param url        The relative URL to be map this endpoint.
@param endpoint   The endpoint handler
@param mediaTypes (Optional) The accepted and returned types for this endpoint