io.hyperfoil.core.steps.ClearHttpCacheAction Maven / Gradle / Ivy
package io.hyperfoil.core.steps;
import org.kohsuke.MetaInfServices;
import io.hyperfoil.api.config.Name;
import io.hyperfoil.api.session.Action;
import io.hyperfoil.api.session.Session;
public class ClearHttpCacheAction implements Action {
@Override
public void run(Session session) {
session.httpCache().clear();
}
/**
* Drops all entries from HTTP cache in the session.
*/
@MetaInfServices(Action.Builder.class)
@Name("clearHttpCache")
public static class Builder implements Action.Builder {
@Override
public ClearHttpCacheAction build() {
return new ClearHttpCacheAction();
}
}
}