Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
echo
master
Echo
Options
Server
Built with Crystal 1.9.2
2023-10-07 11:14:21 UTC
class
Echo::Options
Echo::Options
Reference
Object
Defined in:
echo/options.cr
Constructors
.new
(port : Int32 =
8080
, cors : Bool =
false
, file : String | Nil =
nil
)
Instance Method Summary
#cors
: Bool
#cors=
(cors : Bool)
#file
: String | Nil
#file=
(file : String | Nil)
#port
: Int32
#port=
(port : Int32)
Constructor Detail
def self.
new
(port : Int32 =
8080
, cors : Bool =
false
, file : String | Nil =
nil
)
#
[
View source
]
Instance Method Detail
def
cors
: Bool
#
[
View source
]
def
cors=
(cors : Bool)
#
[
View source
]
def
file
: String | Nil
#
[
View source
]
def
file=
(file : String | Nil)
#
[
View source
]
def
port
: Int32
#
[
View source
]
def
port=
(port : Int32)
#
[
View source
]