Options
All
  • Public
  • Public/Protected
  • All
Menu

A builder for OnmsHTTPOptions. Create a new one with OnmsHTTPOptions.newBuilder.

Hierarchy

  • OnmsHTTPOptionsBuilder

Index

Constructors

Methods

  • A parameter to add or append to the request.

    If undefined is passed, that parameter will be reset to defaults. If the value is a string array, the existing value in the builder will be replaced. Otherwise, if the parameter already exists in the builder, the parameter will be converted to an array if necessary and this parameter will be added to it.

    Parameters

    • parameter: string

      the parameter name

    • Optional value: string | number | boolean | string[]

      the value of the parameter to add (or undefined)

    Returns API.OnmsHTTPOptionsBuilder

  • A header to set in the request.

    If undefined is passed, that header will be reset to defaults.

    Parameters

    • header: string

      the header name

    • Optional value: string | number | boolean

      the value of the header

    Returns API.OnmsHTTPOptionsBuilder

Generated using TypeDoc