class Stremio::Addon::DevKit::MultiBlockHandler
- Stremio::Addon::DevKit::MultiBlockHandler
- Reference
- Object
Overview
Crystal, by design, does not support passing multiple blocks so, we fake it by creating a method, which will capture a block
Defined in:
stremio-addon-devkit/multi_block_handler.crInstance Method Summary
-
#catalog_movie(&handler : HTTP::Server::Context, CatalogMovieRequest -> Union(CatalogMovieResponse, Nil))
our setter By allowing the use of a block, it gives the user more flexibility regarding the parameters they decide to use and the return value
-
#catalog_movie
our getter Throws a TypeCastError if it was not set
-
#catalog_movie?
Our check to see if the handler is set
-
#manifest(&handler : HTTP::Server::Context, ManifestRequest -> Union(ManifestResponse, Nil))
our setter By allowing the use of a block, it gives the user more flexibility regarding the parameters they decide to use and the return value
-
#manifest
our getter Throws a TypeCastError if it was not set
-
#manifest?
Our check to see if the handler is set
Macro Summary
Instance Method Detail
our setter By allowing the use of a block, it gives the user more flexibility regarding the parameters they decide to use and the return value
our setter By allowing the use of a block, it gives the user more flexibility regarding the parameters they decide to use and the return value