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

hashCode int
The hash code for this object.
no setterinherited
port int
The port number used by this Server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
The protocol scheme associated with this server.
final

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