io.hyperfoil.http.steps.HttpMethodBuilder Maven / Gradle / Ivy
package io.hyperfoil.http.steps;
import io.hyperfoil.api.config.BuilderBase;
import io.hyperfoil.http.api.HttpMethod;
import io.hyperfoil.api.session.Session;
import io.hyperfoil.function.SerializableFunction;
@FunctionalInterface
public interface HttpMethodBuilder extends BuilderBase {
SerializableFunction build();
class Provided implements SerializableFunction {
private final HttpMethod method;
public Provided(HttpMethod method) {
this.method = method;
}
@Override
public HttpMethod apply(Session o) {
return method;
}
}
}