AngelGopher class

Inheritance

Constructors

AngelGopher(Angel app, {bool useZone: true})
factory
AngelGopher.custom(Angel app, Future<GopherServer> serverGenerator(dynamic, int), {bool useZone: true})
AngelGopher.secure(Angel app, SecurityContext context, {bool useZone: true})
factory

Properties

app Angel
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
server GopherServer
The native server running this instance.
read-only, inherited
serverGenerator Future<GopherServer> Function(dynamic, int)
The function used to bind this instance to a server..
final, inherited
uri Uri
The path at which this server is listening for requests.
read-only, override
useZone bool
final, inherited

Methods

addCookies(GopherRequest response, Iterable<Cookie> cookies) → void
override
close() Future<GopherServer>
Shuts down the underlying server.
inherited
closeResponse(GopherRequest response) Future
override
createRequestContext(GopherRequest request, GopherRequest response) Future<GopherRequestContext>
override
createResponseContext(GopherRequest request, GopherRequest response, [GopherRequestContext correspondingRequest]) Future<GopherResponseContext>
override
createResponseStreamFromRawRequest(GopherRequest request) Stream<GopherRequest>
override
generateServer(dynamic address, int port) Future<GopherServer>
inherited
handleAngelHttpException(AngelHttpException e, StackTrace st, RequestContext req, ResponseContext res, GopherRequest request, GopherRequest response, {bool ignoreFinalizers: false}) Future
Handles an AngelHttpException.
inherited
handleRawRequest(GopherRequest request, GopherRequest response) Future
Handles a single request.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sendResponse(GopherRequest request, GopherRequest response, RequestContext req, ResponseContext res, {bool ignoreFinalizers: false}) Future
Sends a response.
inherited
setChunkedEncoding(GopherRequest response, bool value) → void
override
setContentLength(GopherRequest response, int length) → void
override
setHeader(GopherRequest response, String key, String value) → void
override
setStatusCode(GopherRequest response, int value) → void
override
startServer([dynamic address, int port]) Future<GopherServer>
Starts, and returns the server.
inherited
toString() String
Returns a string representation of this object.
inherited
writeStringToResponse(GopherRequest response, String value) → void
override
writeToResponse(GopherRequest response, List<int> data) → void
override

Operators

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