Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new default(options: HapiAdapterOptions): default

Properties

_request: Request
_responseToolkit: ResponseToolkit
_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): ResponseObject
  • relative(path: string): string
  • This is the static entry point and MUST be provided

    Parameters

    • request: Request

      The hapi request

    • h: ResponseToolkit

      The hapi response toolkit

    • Optional storage: Storage | storageFactory

      Custom storage instance or a storage factory function

    Returns SMART

Generated using TypeDoc