withCodec method

List<ApiEndpoint> withCodec(
  1. ApiCodec codec
)

Implementation

List<ApiEndpoint> withCodec(ApiCodec codec) {
  return wrap(
      (h) => (r) async => codec.encode(await h(r.change(codec: codec))));
}