All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hyperfoil.http.steps.HttpMethodBuilder Maven / Gradle / Ivy

There is a newer version: 0.27.1
Show newest version
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;
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy