Package com.intuit.karate.http
Class HttpServer
- java.lang.Object
-
- com.intuit.karate.http.HttpServer
-
- Direct Known Subclasses:
MockServer
public class HttpServer extends Object
- Author:
- pthomas3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpServer.Builder
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description HttpServer(com.linecorp.armeria.server.ServerBuilder sb)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpServer.Builderconfig(ServerConfig config)intgetPort()static HttpServer.Builderhandler(ServerHandler handler)static HttpServer.Builderroot(String root)CompletableFuturestop()voidwaitSync()
-
-
-
Method Detail
-
waitSync
public void waitSync()
-
getPort
public int getPort()
-
stop
public CompletableFuture stop()
-
handler
public static HttpServer.Builder handler(ServerHandler handler)
-
root
public static HttpServer.Builder root(String root)
-
config
public static HttpServer.Builder config(ServerConfig config)
-
-