Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
azu
v0.4.12
Azu
Channel
Component
Configuration
Endpoint
Environment
Handler
CORS
OriginType
CSRF
BaseToken
PersistentToken
TokenOperations
RefreshableToken
Headers
IpSpoofing
Logger
Origin
Preflight
RequestID
Rescuer
SimpleLogger
Static
Throttle
Markup
Params
Form
Multipart
File
Request
Response
BadRequest
Empty
Error
Forbidden
NotFound
Router
Builder
DuplicateRoute
Path
Route
Spark
SQL
Formatter
Templates
Renderable
Generated using Crystal 1.12.2
2024-08-25 03:22:24 UTC
struct
Azu::
Handler::
Origin
Azu::Handler::Origin
Struct
Value
Object
Defined in:
azu/handler/cors.cr
Constructors
.new
(origins : CORS::OriginType)
Instance Method Summary
#any?
#match?
(request)
#request_origin
: String | Nil
Constructor Detail
def self.
new
(origins :
CORS::OriginType
)
#
[
View source
]
Instance Method Detail
def
any?
#
[
View source
]
def
match?
(request)
#
[
View source
]
def
request_origin
: String | Nil
#
[
View source
]