Top Level Namespace

Defined in:

Constant Summary

HEADERS_TO_COPY = ["content-type", "content-length", "content-disposition", "content-security-policy", "accept-ranges", "access-control-allow-origin", "access-control-allow-headers", "access-control-expose-headers", "access-control-allow-methods", "x-ratelimit-limit", "x-ratelimit-remaining", "x-ratelimit-reset", "last-modified", "cache-control", "expires", "etag", "vary"]

Method Summary

Method Detail

def apply_effect(ctx, upstream_body_io : IO, response : HTTP::Server::Response, file_name : String, list : Effect::CommandList) #

[View source]
def bad_request(env, message : String) #

[View source]
def copy_headers_to_env(response : HTTP::Client::Response, env) #

copy headers from a given response to the given env.response


[View source]
def copy_io(log : Logger, in_io : IO, out_io : IO) #

copy io between two IO objects


[View source]
def delete_from_cache(log, ctx, filename : String) #

[View source]
def fetch_effect_from_env(env) : Effect::CommandList | Nil #

[View source]
def get_full_cache_path(ctx, file_name : String, list) : Path #

get the full path inside the cache directory given a shortname


[View source]
def inject_twitter_card(env) #

[View source]
def janitor_loop(ctx : RyukoContext, retries = 0) #

[View source]
def janitor_tick(ctx) #

[View source]
def setup_request(env) #

return the headers and url that should be used in the call to the upstream elixire instance


[View source]
def should_twitter_card?(env) #

[View source]