class
Athena::Mercure::Discovery
- Athena::Mercure::Discovery
- Reference
- Object
Overview
Allows for automatically discovering the Mercure hub via a Link header.
E.g. can be included with the response for a resource to allow clients to then extract the URL from the rel mercure header to subscribe to future updates for that resource.
See Discovery for more information.
Defined in:
discovery.crConstructors
Instance Method Summary
-
#add_link(request : HTTP::Request, response : HTTP::Server::Response, hub_name : String | Nil = nil) : Nil
Adds the mercure relation
linkheader to the provided response, optionally for the provided hub_name.
Constructor Detail
Instance Method Detail
def add_link(request : HTTP::Request, response : HTTP::Server::Response, hub_name : String | Nil = nil) : Nil
#
Adds the mercure relation link header to the provided response, optionally for the provided hub_name.