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

@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