APIConsole class

API Console

Constructors

APIConsole(APIRoot apiRoot, {String name = 'APIConsole', String version = BonesAPI.VERSION})

Properties

apiRoot APIRoot
The API root of this server.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
The version of this server.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processRequest(APIRequest request) FutureOr<APIResponse>
Processes an API request.
processRequestLine(String line) FutureOr<APIResponse>
Processes an API line request.
run(FutureOr<String?> nextLine(), {bool returnResponses = true, dynamic onRequest(APIRequest request)?, dynamic onResponse(APIResponse response)?}) Future<List<APIResponse>>
Runs the console interaction.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited