Liberator.Resource.service_available-question-mark
You're seeing just the callback
service_available-question-mark
, go back to Liberator.Resource module for more information.
Specs
service_available?(Plug.Conn.t()) :: true | false
Check if your service is available.
This is the first function called in the entire pipeline,
and lets you check to make sure everything works before going deeper.
If this function returns false
, then the plug will return a 503 Service Not Available response.
If this function returns a map containing a value called :retry_after
,
Liberator will put this value into a retry-after
header,
Some crawlers and spiders honor this value,
so they will not bother you while you're down,
and will continue to index your site afterward.
See MDN's docs on the retry-after
header
for more information.
By default, always returns true
.