
io.pileworx.rebound.client.builder.DefineRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rebound-client-java Show documentation
Show all versions of rebound-client-java Show documentation
Client library for rebound mock server
The newest version!
package io.pileworx.rebound.client.builder;
import io.pileworx.rebound.client.definition.Header;
import io.pileworx.rebound.client.definition.Method;
import io.pileworx.rebound.client.definition.Request;
import java.util.List;
import java.util.function.Consumer;
public class DefineRequest {
public Method method;
public String path;
public String query;
public List
headers;
public String body;
public DefineRequest with(Consumer builderFunction) {
builderFunction.accept(this);
return this;
}
public Request build() {
return new Request(method, path, query, headers, body);
}
}