View Source CsrfPlus.UserAccessInfo (CsrfPlus v0.2.0)
Defines a basic user access information containing the ip and the user agent.
Summary
Functions
Will convert a raw map with :ip and :user_agent into a CsrfPlus.UserAccessInfo struct.
Converts a JSON object string with :ip and :user_agent fields into a CsrfPlus.UserAccessInfo struct.
Converts a CsrfPlus.UserAccessInfo struct into a JSON object string.
Types
The User access information.
:ip- The most trustable IP address you can get.:user_agent- The user agent string of the requests.
Functions
Will convert a raw map with :ip and :user_agent into a CsrfPlus.UserAccessInfo struct.
Converts a JSON object string with :ip and :user_agent fields into a CsrfPlus.UserAccessInfo struct.
Converts a CsrfPlus.UserAccessInfo struct into a JSON object string.