Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HttpOptions

named parameters of the [[http]] function.

Hierarchy

Hierarchy-Diagram

Index

Properties

Optional agentClass

agentClass: any

Optional agentOptions

agentOptions: any

Optional application

application: string

name of (backend) application as specified in relution.json.

It is adviced following the convention of using this name prefixed by a slash as the baseAlias. However, in case a different alias is used, set the field to the alias including the slash instead to make the library communicate to the correct endpoint.

Optional auth

auth: AuthOptions

Optional aws

aws: AWSOptions

Optional baseUrl

baseUrl: string

Optional body

body: any

Optional ca

ca: Buffer

Optional callback

callback: function

Type declaration

    • (error: any, response: IncomingMessage, body: any): void
    • Parameters

      • error: any
      • response: IncomingMessage
      • body: any

      Returns void

Optional cert

cert: Buffer

Optional clientApp

clientApp: string

(mobile) client app using the (backend) application.

When set, the value of this field is send to the Relution server for identification of the app using it. Typically, this is the name or uuid of the app in the appstore.

Optional clientCertificate

clientCertificate: SecureContextOptions

when set, this is used as pfx for the requests to the server.

Optional encoding

encoding: string

Optional followAllRedirects

followAllRedirects: boolean

Optional followRedirect

followRedirect: boolean | function

Optional forever

forever: any

Optional form

form: any

Optional formData

formData: any

Optional gzip

gzip: boolean

Optional har

har: HttpArchiveRequest

Optional hawk

hawk: HawkOptions

Optional headers

headers: Headers

Optional host

host: string

Optional jar

jar: any

Optional json

json: any

Optional key

key: Buffer

Optional logonCallback

logonCallback: LogonCallback

optional logon applied after each login.

Typically the callback supplied uses connector.configureSession() to transfer required credentials of 3rd-tier backend servers after logon.

Notice, logon may be called mutiple times after login as due to inactivity the server side session may be lost and needs to be reacquired eventually.

Optional maxRedirects

maxRedirects: number

Optional method

method: string

Optional multipart

multipart: RequestPart[] | Multipart

Optional oauth

oauth: OAuthOptions

Optional passphrase

passphrase: string

Optional pool

pool: any

Optional port

port: number

Optional postambleCRLF

postambleCRLF: boolean

Optional preambleCRLF

preambleCRLF: boolean

Optional proxy

proxy: any

Optional qs

qs: any

Optional requestCallback

requestCallback: HttpCallback<HttpRequest>

optional callback allowing to customize the client request in more detail than provided by default.

Optional responseCallback

responseCallback: HttpCallback<HttpResponse>

optional callback allowing to inspect the server response in more detail than provided by default.

Optional serverUrl

serverUrl: string

absolute url path of (default) Relution server.

Notice, the library will work correctly only if the Relution server endpoints are exposed as a (sub-)domain. Operation of Relution at a subpath of URL space is not supported!

Optional strictSSL

strictSSL: boolean

Optional tenantOrga

tenantOrga: string

optional tenant Organization unique name.

For fully multi-tenant capable backends this field selects the backend instance the client talks to. The field defaults to using the Organization of the logon User which suffices for most use cases.

When set to the unique name of an Organization, users of of one Organization may log into the (backend) application instance of another Organization serving as the tenant. Notice, in order to use this feature the tenant Organization must have at least execute rights on the (backend) application and the User using it needs to have read permission on the tenant Organization used.

Optional timeout

timeout: number

url

url: string

Optional useQuerystring

useQuerystring: boolean

Generated using TypeDoc