serve abstract method

Future<AcpHttpServerBinding> serve(
  1. AcpHttpServer server, {
  2. String host = '127.0.0.1',
  3. int port = 0,
  4. String path = '/acp',
  5. bool shared = false,
  6. AcpWebSocketServer? webSocketServer,
})

Binds server at host, port, and path.

The loopback default is intentional. Authentication, TLS, CORS, rate limiting, quotas, and authorization remain host-application concerns.

Implementation

Future<AcpHttpServerBinding> serve(
  AcpHttpServer server, {
  String host = '127.0.0.1',
  int port = 0,
  String path = '/acp',
  bool shared = false,
  AcpWebSocketServer? webSocketServer,
});