Hwaro::Config::Options::ServeOptions
Inherits Struct / Value / Object
Constructors
new(host : String = "127.0.0.1", port : Int32 = 3000, base_url : String | Nil = nil, drafts : Bool = false, include_expired : Bool = false, include_future : Bool = false, minify : Bool = false, workers : Int32 = 0, open_browser : Bool = false, verbose : Bool = false, debug : Bool = false, access_log : Bool = false, error_overlay : Bool = true, live_reload : Bool = true, profile : Bool = false, cache_busting : Bool = true, env : String | Nil = nil, skip_og_image : Bool = false, skip_image_processing : Bool = false, cache : Bool = false, stream : Bool = false, memory_limit : String | Nil = nil, json : Bool = false, fast_start : Bool = false, fast_start_count : Int32 = 20, headers : Hash(String, String) = {} of String => String)
SourceInstance methods
access_log
Sourceaccess_log=(access_log : Bool)
Sourcebase_url
Sourcebase_url=(base_url : String | Nil)
Sourcecache
Sourcecache=(cache : Bool)
Sourcecache_busting
Sourcecache_busting=(cache_busting : Bool)
Sourcedebug
Sourcedebug=(debug : Bool)
Sourcedrafts
Sourcedrafts=(drafts : Bool)
Sourceenv
Sourceenv=(env : String | Nil)
Sourceerror_overlay
Sourceerror_overlay=(error_overlay : Bool)
Sourcefast_start
Sourcefast_start=(fast_start : Bool)
Sourcefast_start_count
Sourcefast_start_count=(fast_start_count : Int32)
Sourceheaders
Custom response headers to inject during serve (from config.toml [serve.headers] + CLI --header)
headers=(headers : Hash(String, String))
Custom response headers to inject during serve (from config.toml [serve.headers] + CLI --header)
host
Sourcehost=(host : String)
Sourceinclude_expired
Sourceinclude_expired=(include_expired : Bool)
Sourceinclude_future
Sourceinclude_future=(include_future : Bool)
Sourcejson
Sourcejson=(json : Bool)
Sourcelive_reload
Sourcelive_reload=(live_reload : Bool)
Sourcememory_limit
Sourcememory_limit=(memory_limit : String | Nil)
Sourceminify
Sourceminify=(minify : Bool)
Sourceopen_browser
Sourceopen_browser=(open_browser : Bool)
Sourceport
Sourceport=(port : Int32)
Sourceprofile
Sourceprofile=(profile : Bool)
Sourceskip_image_processing
Sourceskip_image_processing=(skip_image_processing : Bool)
Sourceskip_og_image
Sourceskip_og_image=(skip_og_image : Bool)
Sourcestream
Sourcestream=(stream : Bool)
Sourceverbose
Sourceverbose=(verbose : Bool)
Source