Expand description
§Corsware
Yet another implementation of the CORS Specification for Iron.
Structs§
- Cors
Middleware - An Iron middleware implementing CORS.
- Origin
Header - A Custom Origin header which allows for null origins, something the standard Iron header does not.
- UniCase
- Case Insensitive wrapper of strings.
Enums§
- Allowed
Origins - Specifies which origins are allowed to access this resource
- Origin
- A struct which implements the concept ‘Web Origin’ as defined in https://tools.ietf.org/html/rfc6454.
Functions§
- all_
std_ methods - Returns all standard HTTP verbs:
[Options, Get, Post, Put, Delete, Head, Trace, Connect, Patch]
- common_
req_ headers - Returns HTTP Headers commonly set by clients (js frontend frameworks and the like):
[Authorization, Content-Type and X-Requested-With]