HttpConn class

The async iterable that is returned from {@linkcode Deno.serveHttp} which yields up {@linkcode RequestEvent} events, representing individual requests on the HTTP server connection.

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

HttpConn({num? rid, Future<RequestEvent?> nextRequest()?, void close()?})
factory

Properties

close ↔ void Function()

Available on HttpConn, provided by the HttpConn$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
nextRequest Future<RequestEvent?> Function()

Available on HttpConn, provided by the HttpConn$Typings extension

getter/setter pair
rid num

Available on HttpConn, provided by the HttpConn$Typings extension

The resource ID associated with this connection. Generally users do not need to be aware of this identifier.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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