Sha256: f4e4e125381d6746bd2d2561f85265808e513914d54b47b104e43817746ceca5

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

require 'ostruct'
require 'rack/mime'
require 'anisoptera/commander'
require 'anisoptera/serializer'
require 'anisoptera/version'
require 'anisoptera/app'
require 'anisoptera/endpoint'

module Anisoptera
  
  HEADERS = {
    'Cache-Control'   => 'public, max-age=3153600'
  }.freeze
  
  @apps = {}
  @prefer_async = true
  
  def prefer_async=(bool)
    @prefer_async = bool
  end
  
  def prefer_async
    !!@prefer_async
  end
  
  def [](app_name)
    @apps[app_name] ||= Anisoptera::App.new
  end
  
  extend self
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anisoptera-0.0.2 lib/anisoptera.rb