mockserver-client-java/src/main/java/org/mockserver/client/MockServerClient.java
public MockServerClient clear(HttpRequest httpRequest, ClearType type) {
        sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("clear"))
                .withQueryStringParameter("type", type.name().toLowerCase()).withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
        );
        return clientClass.cast(this);
    }
/**
     * Clear expectations, logs or both that match the http
     *
     * @param httpRequest the http request that is matched against when deciding whether to clear each expectation if null all expectations are cleared
     * @param type        the type to clear, EXPECTATION, LOG or BOTH
     */
Clear expectations, logs or both that match the http
@param httpRequest the http request that is matched against when deciding whether to clear each expectation if null all expectations are cleared
@param type        the type to clear, EXPECTATION, LOG or BOTH
Clear expectations logs or both that match the http @param httpRequest the http request that is matched against when deciding whether to clear each expectation if null all expectations are cleared @param type the type to clear EXPECTATION LOG or BOTH
public MockServerClient clear(HttpRequest httpRequest, ClearType type) {
        sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("clear"))
                .withQueryStringParameter("type", type.name().toLowerCase()).withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
        );
        return clientClass.cast(this);
    }
public MockServerClient clear ( HttpRequest httpRequest , ClearType type ) { sendRequest ( request ( ) . withMethod ( "PUT" ) . withContentType ( APPLICATION_JSON_UTF_8 ) . withPath ( calculatePath ( "clear" ) ) . withQueryStringParameter ( "type" , type . name ( ) . toLowerCase ( ) ) . withBody ( httpRequest != null ? httpRequestSerializer . serialize ( httpRequest ) : "" , StandardCharsets . UTF_8 ) ) ; return clientClass . cast ( this ) ; }
Clear expectations, logs or both that match the http
 @param httpRequest the http request that is matched against when deciding whether to clear each expectation if null all expectations are cleared
 @param type        the type to clear, EXPECTATION, LOG or BOTH
Clear expectations logs or both that match the http @param httpRequest the http request that is matched against when deciding whether to clear each expectation if null all expectations are cleared @param type the type to clear EXPECTATION LOG or BOTH