mockserver-client-java/src/main/java/org/mockserver/client/MockServerClient.java
public MockServerClient clear(HttpRequest httpRequest) {
        sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("clear"))
                .withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
        );
        return clientClass.cast(this);
    }
/**
     * Clear all expectations and logs 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
     */
Clear all expectations and logs 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
Clear all expectations and logs 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
public MockServerClient clear(HttpRequest httpRequest) {
        sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("clear"))
                .withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
        );
        return clientClass.cast(this);
    }
public MockServerClient clear ( HttpRequest httpRequest ) { sendRequest ( request ( ) . withMethod ( "PUT" ) . withContentType ( APPLICATION_JSON_UTF_8 ) . withPath ( calculatePath ( "clear" ) ) . withBody ( httpRequest != null ? httpRequestSerializer . serialize ( httpRequest ) : "" , StandardCharsets . UTF_8 ) ) ; return clientClass . cast ( this ) ; }
Clear all expectations and logs 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
Clear all expectations and logs 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