Procs
proc toDomain(fullDomain: string): Domain {.noSideEffect, ...raises: [], tags: [].}
- Convert a full domain string in a Domain instance
proc update(self: var Domain; noCache = false) {....raises: [KeyError, ValueError, HttpRequestError, Exception, LibraryError, OSError, SslError, IOError, TimeoutError, ProtocolError, JsonParsingError, TimeParseError], tags: [RootEffect, ReadIOEffect, WriteIOEffect, TimeEffect].}
- Updates the domain with api data
proc whois(domain: string; noCache = false): Domain {.inline, ...raises: [KeyError, ValueError, HttpRequestError, Exception, LibraryError, OSError, SslError, IOError, TimeoutError, ProtocolError, JsonParsingError, TimeParseError], tags: [RootEffect, ReadIOEffect, WriteIOEffect, TimeEffect].}
-
A alias for: .. code-block:: nim
var domain = "duckduckgo.com".toDomain domain.update()