public void addHandler(Object handler, List<HttpMethod> httpMethods) {
        requireNonNull(allowedMethods, "allowedMethods");
        log.info(
            "Bind handler {} into http server {}:{}",
            handler.getClass().getSimpleName(), config.getHost(), config.getPort()
        );

        sb.annotatedService()
          .build(handler);
        this.allowedMethods.addAll(httpMethods);
    }
@param handler        Specific service provider.
@param httpMethods    Register the http methods which the handler service accepts. Other methods respond "405, Method Not Allowed".
oap-server/server-library/library-server/src/main/java/org/apache/skywalking/oap/server/library/server/http/HTTPServer.java