module Moonstones::Api::Controller

Direct including types

Defined in:

moonstones/api/controller.cr

Constant Summary

AUTHORIZATION_GSUB_PARAMS_ARRAY_FROM = /^"|"$/
AUTHORIZATION_PAIR_DELIMITERS = /(?:,|;|\t+)/
AUTHORIZATION_SPLIT_RAW_PARAMS = /=(.+)?/
AUTHORIZATION_TOKEN_KEY = "token="
AUTHORIZATION_TOKEN_REGEX = /^(Token|Bearer)\s+/

Instance Method Summary

Instance Method Detail

def authorization_token_and_options #

Parse Authorization header, return token and options in Rails-style


[View source]
def decorated_errors_of(resource) #

=> Rails-inspired errors hash


[View source]