getRole

Gets a role by its request.

  1. Role getRole(string name)
  2. Role getRole(HttpClient client)
    static if(isWeb)
    getRole
    (
    HttpClient client
    )

Parameters

client HttpClient

The client.

Return Value

Type: Role

The role if existing, defaultRole otherwise.

Meta