Options
All
  • Public
  • Public/Protected
  • All
Menu

Node Adapter - works with native NodeJS and with Express

Hierarchy

Implements

Index

Constructors

  • new default(options: NodeAdapterOptions): default

Properties

_storage: null | Storage = null

Holds the Storage instance associated with this instance

options: NodeAdapterOptions

Environment-specific options

security: security/server = security

Methods

  • atob(str: string): string
  • base64urldecode(input: string): string
  • base64urlencode(input: string | Uint8Array): string
  • btoa(str: string): string
  • getAbortController(): { prototype: AbortController }
  • Returns a reference to the AbortController constructor. In browsers, AbortController will always be available as global (native or polyfilled)

    Returns { prototype: AbortController }

    • prototype: AbortController
  • getProtocol(): string
  • Creates and returns adapter-aware SMART api. Not that while the shape of the returned object is well known, the arguments to this function are not. Those who override this method are free to require any environment-specific arguments. For example in node we will need a request, a response and optionally a storage or storage factory function.

    Returns SMART

  • getUrl(): URL
  • redirect(location: string): void
  • relative(path: string): string

Generated using TypeDoc