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
- apply_effect(ctx, upstream_body_io : IO, response : HTTP::Server::Response, file_name : String, list : Effect::CommandList)
 - bad_request(env, message : String)
 - 
        copy_headers_to_env(response : HTTP::Client::Response, env)
        
          
copy headers from a given response to the given env.response
 - 
        copy_io(log : Logger, in_io : IO, out_io : IO)
        
          
copy io between two IO objects
 - delete_from_cache(log, ctx, filename : String)
 - fetch_effect_from_env(env) : Effect::CommandList | Nil
 - 
        get_full_cache_path(ctx, file_name : String, list) : Path
        
          
get the full path inside the cache directory given a shortname
 - inject_twitter_card(env)
 - janitor_loop(ctx : RyukoContext, retries = 0)
 - janitor_tick(ctx)
 - 
        setup_request(env)
        
          
return the headers and url that should be used in the call to the upstream elixire instance
 - should_twitter_card?(env)
 
Method Detail
        
        def apply_effect(ctx, upstream_body_io : IO, response : HTTP::Server::Response, file_name : String, list : Effect::CommandList)
        #
      
      
      
        
        def copy_headers_to_env(response : HTTP::Client::Response, env)
        #
      
      
        copy headers from a given response to the given env.response
        
        def get_full_cache_path(ctx, file_name : String, list) : Path
        #
      
      
        get the full path inside the cache directory given a shortname
        
        def setup_request(env)
        #
      
      
        return the headers and url that should be used in the call to the upstream elixire instance