An adapter with a concrete URL.
The most basic definition of "adapter" includes any function that passes incoming requests to a Handler and passes its responses to some external client. However, in practice, most adapters are also servers—that is, they're serving requests that are made to a certain well-known URL.
This interface represents those servers in a general way. It's useful for writing code that needs to know its own URL without tightly coupling that code to a single server implementation.
Implementations of this interface are responsible for ensuring that the members work as documented.
) → Future
- Closes the server and returns a Future that completes when all resources are released. [...]
Handler handler ) → void
handleras the base handler for this server. [...]
Invocation invocation ) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.