Types
BadSecretKeyError = object of CatchableError
- Source Edit
EmptySecretKeyError = object of CatchableError
- Source Edit
FlashLevel = enum Info = "info", Warning = "warning", Error = "error", Fault = "fault"
- Source Edit
Procs
func flash(session: var Session; msgs: string; category = FlashLevel.Info) {. inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
func getMessage(session: var Session; category: FlashLevel): Option[string] {. inline, ...raises: [KeyError], tags: [], forbids: [].}
- Source Edit
func getMessage(session: var Session; category: string): Option[string] {. inline, ...raises: [KeyError], tags: [], forbids: [].}
- Source Edit
func getOrDefault(session: var Session; key: string; default = ""): string {. inline, ...raises: [KeyError], tags: [], forbids: [].}
- Retrieves the value if key exists in session. Otherwise default will be returned. Source Edit
func initFormPart(): FormPart {....raises: [], tags: [], forbids: [].}
- Source Edit
proc messagesWithCategory(session: var Session): seq[(string, string)] {. ...raises: [], tags: [], forbids: [].}
- Source Edit
func newSession(data: StringTableRef; newCreated = false; modified = false; accessed = false): Session {.inline, ...raises: [], tags: [], forbids: [].}
- Initializes a new session. Source Edit
func parseStringTable(tabs: var StringTableRef; s: string) {....raises: [], tags: [], forbids: [].}
- Source Edit
func parseValue[T: BaseType](value: string; default: T): T {.inline.}
- Source Edit