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

io.hyperfoil.api.connection.HttpRequest Maven / Gradle / Ivy

There is a newer version: 0.27.1
Show newest version
package io.hyperfoil.api.connection;

import io.hyperfoil.api.config.ServiceLoadedFactory;
import io.hyperfoil.api.http.HttpMethod;
import io.hyperfoil.api.http.HttpResponseHandlers;
import io.hyperfoil.api.session.SequenceInstance;
import io.hyperfoil.api.session.Session;
import io.hyperfoil.api.statistics.Statistics;

public class HttpRequest extends Request {
   public HttpResponseHandlers handlers;
   public HttpMethod method;
   public String baseUrl;
   public String path;

   public HttpRequest(Session session) {
      super(session);
   }

   public void start(HttpResponseHandlers handlers, SequenceInstance sequence, Statistics statistics) {
      this.handlers = handlers;
      start(sequence, statistics);
   }

   public HttpResponseHandlers handlers() {
      return handlers;
   }

   @Override
   protected void handleThrowable(Throwable throwable) {
      handlers.handleThrowable(this, throwable);
   }

   @ServiceLoadedFactory.Include(Request.ProcessorBuilderFactory.class)
   public interface ProcessorBuilderFactory extends ServiceLoadedFactory> {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy