
com.github.tonivade.zeromock.client.HttpClientBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zeromock-client Show documentation
Show all versions of zeromock-client Show documentation
Mock Http Server (mostly) without dependencies
The newest version!
/*
* Copyright (c) 2018-2024, Antonio Gabriel Muñoz Conejo
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.zeromock.client;
@FunctionalInterface
public interface HttpClientBuilder {
T connectTo(String url);
static HttpClientBuilder client() {
return HttpClient::connectTo;
}
static HttpClientBuilder asyncClient() {
return AsyncHttpClient::connectTo;
}
static HttpClientBuilder ioClient() {
return IOHttpClient::connectTo;
}
static HttpClientBuilder uioClient() {
return UIOHttpClient::connectTo;
}
static HttpClientBuilder taskClient() {
return TaskHttpClient::connectTo;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy