vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Class RestClient

    REST resource client

    Index

    Constructors

    Properties

    connection: ServerConnection
    contentType: string = 'application/json; charset=utf-8'
    endpoint: string
    extraHeaders: Record<string, string | number>

    Extra headers included in each request

    Methods

    • Get the current value of a request header by the specified name.

      Parameters

      • name: string

        header name

      Returns undefined | string | number

    • Add or override a request header that will be used for each re

      Parameters

      • name: string

        header name

      • value: string | number

      Returns this

    post