get method
MethodPrepare
get(
- Handler handler, [
- List<
Middleware> ? pipeline, - List<
String> ? acceptedContentType
Implementation
MethodPrepare get(
Handler handler, [
List<Middleware>? pipeline,
List<String>? acceptedContentType,
]) {
var i = _path.methods['GET'] = PathMethod(
[...parentPipeline, ...?pipeline],
handler: handler,
acceptedContentType: acceptedContentType ?? [],
);
return MethodPrepare(i);
}