use of aQute.http.testservers.Httpbin in project bnd by bndtools.
the class HttpClientProxyTest method createUnsecureServer.
void createUnsecureServer() throws Exception {
Httpbin.Config config = new Httpbin.Config();
config.https = false;
httpTestServer = new Httpbin(config);
httpTestServer.start();
}
use of aQute.http.testservers.Httpbin in project bnd by bndtools.
the class HttpClientProxyTest method createSecureServer.
void createSecureServer() throws Exception {
Httpbin.Config config = new Httpbin.Config();
config.https = true;
httpTestServer = new Httpbin(config);
httpTestServer.start();
}
use of aQute.http.testservers.Httpbin in project bnd by bndtools.
the class HttpClientTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Config config = new Config();
config.https = false;
httpServer = new TestServer(config);
httpServer.start();
Config configs = new Config();
configs.https = true;
httpsServer = new Httpbin(configs);
httpsServer.start();
tmp = IO.getFile("generated/tmp");
IO.delete(tmp);
tmp.mkdirs();
}
use of aQute.http.testservers.Httpbin in project bnd by bndtools.
the class HttpClientServerTest method createSecureServer.
public void createSecureServer() throws Exception {
Config config = new Config();
config.https = true;
httpServer = new Httpbin(config);
httpServer.start();
}
use of aQute.http.testservers.Httpbin in project bnd by bndtools.
the class HttpTestServerTest method getHttp.
public HttpTestServer getHttp() throws Exception {
HttpTestServer.Config config = new Config();
config.https = false;
HttpTestServer http = new Httpbin(config);
http.start();
return http;
}
Aggregations