HttpServer class final
A ProtocolServer for the Hypertext Transfer Protocol (HTTP).
- Implemented types
Constructors
- HttpServer(HttpConfig? httpConfig)
- Create a new HttpServer from an optional HttpConfig.
Properties
Methods
-
expose(
ExposedThing thing) → Future< void> -
Exposes a
thing
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
[ServerSecurityCallback? serverSecurityCallback]) → Future< void> -
Starts the server. Accepts a callback for retrieving a Map of
credentials for ExposedThings at runtime.
override
-
stop(
) → Future< void> -
Stops the server.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited