APISonar


com.linecorp.armeria.server.ServerBuilder.http

> com > linecorp > armeria > server > ServerBuilder > http
com APIs linecorp APIs armeria APIs server APIs ServerBuilder APIs http APIs

Example 1
protected final void configure(ServerBuilder sb) throws Exception {
        sb.http(0);
        sb.https(0);
        sb.tlsSelfSigned();

        sb.serviceUnder("/", new MockWebService());

        configureServer(sb);
    }
Example 2
static Server newServer(int port) {
        final ServerBuilder sb = Server.builder();
        return sb.http(port)
                 .annotatedService("/pathPattern", new PathPatternService())
                 .annotatedService("/injection", new InjectionService())
                 .annotatedService("/messageConverter", new MessageConverterService())
                 .annotatedService("/exception", new ExceptionHandlerService())
                 .serviceUnder("/docs", new DocService())
                 .build();
    }