RequestHandler class

Constructors

RequestHandler({required Map<String, dynamic> serviceIdMap, required Map<String, dynamic> proxyMap, required Map<String, dynamic> contentTypes, required String catalogDir, required String metaDir, required String host, required String scheme, required Handler staticHandler})

Properties

catalogDir String
final
contentTypes Map<String, dynamic>
final
hashCode int
The hash code for this object.
no setterinherited
host String
final
metaDir String
final
placeholderPattern RegExp
getter/setter pair
proxyMap Map<String, dynamic>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
final
serviceIdMap Map<String, dynamic>
final
staticHandler → Handler
final

Methods

createManifestResponse() Future<Response>
createProxyResponse(dynamic request) Future<Response>
createServicesResponse() Future<Response>
createSpecResponse() Future<Response>
createSpecsResponse(dynamic serviceId) Future<Response>
handle(Request request) Future<Response>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
proxyHandler(Request request) Future<Response>
substituteTemplateProperties(String template, Map<String, dynamic> templateProperties) String
toString() String
A string representation of this object.
inherited
writeTemplate(dynamic templateFile, dynamic properties) Future<String>

Operators

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