entryPoint property

Handler get entryPoint

Implement this accsessor to define how HTTP requests are handled by application.

Implement this accsessor to return the handler that will handle an HTTP request. This accsessor is invoked during startup and handler cannot be changed after it is invoked. This accsessor is always invoked after prepare.

In most applications, the handler is a router:

@override
Handler get entryPoint {
  return shelf_router.Router()
   ..get('/hello', (request) => Response.ok('Hello World!'))
   /* other routes */;
}

Implementation

Handler get entryPoint;