Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Response

SHIORI Response Message Headers Container

Hierarchy

Index

Constructors

constructor

  • new Response(header?: object): Response

Properties

header

header: object

headers

Type declaration

  • [name: string]: string | undefined

Accessors

BalloonOffset

  • get BalloonOffset(): number[][]
  • set BalloonOffset(value: number[][]): void
  • BalloonOffset header (SHIORI/2.0)

    Returns number[][]

  • BalloonOffset header (SHIORI/2.0)

    Parameters

    • value: number[][]

    Returns void

Sentence

  • get Sentence(): undefined | string
  • set Sentence(value: undefined | string): void
  • Sentence header (SHIORI/2.0,2.2,2.3b,2.4)

    Returns undefined | string

  • Sentence header (SHIORI/2.0,2.2,2.3b,2.4)

    Parameters

    • value: undefined | string

    Returns void

Status

  • get Status(): number[]
  • set Status(value: number[]): void
  • Status header (GET Status SHIORI/2.0)

    Returns number[]

  • Status header (GET Status SHIORI/2.0)

    Parameters

    • value: number[]

    Returns void

String

  • get String(): undefined | string
  • set String(value: undefined | string): void
  • String header (GET String SHIORI/2.5)

    Returns undefined | string

  • String header (GET String SHIORI/2.5)

    Parameters

    • value: undefined | string

    Returns void

Surface

  • get Surface(): number[]
  • set Surface(value: number[]): void

Value

  • get Value(): undefined | string
  • set Value(value: undefined | string): void
  • Value header (GET SHIORI/3.0)

    Returns undefined | string

  • Value header (GET SHIORI/3.0)

    Parameters

    • value: undefined | string

    Returns void

Word

  • get Word(): undefined | string
  • set Word(value: undefined | string): void
  • Word header (GET Word SHIORI/2.0)

    Returns undefined | string

  • Word header (GET Word SHIORI/2.0)

    Parameters

    • value: undefined | string

    Returns void

Methods

Reference

  • Reference(index: number): undefined | string
  • Reference* header (SHIORI/2.2-2.6,3.x)

    Parameters

    • index: number

      reference index

    Returns undefined | string

    header value

ReferenceSeparated

  • ReferenceSeparated(index: number, separator?: string): string[]
  • Reference* header (SHIORI/2.2-2.6,3.x)

    Parameters

    • index: number

      reference index

    • Default value separator: string = ""

      separator characters

    Returns string[]

    header values

ReferenceSeparated2

  • ReferenceSeparated2(index: number, separator1?: string, separator2?: string): string[][]
  • Reference* header (SHIORI/2.2-2.6,3.x)

    Parameters

    • index: number

      reference index

    • Default value separator1: string = ""

      first level separator characters

    • Default value separator2: string = ""

      second level separator characters

    Returns string[][]

    header values

StringSeparated

  • StringSeparated(separator?: string): string[]
  • String header (GET String SHIORI/2.5)

    Parameters

    • Default value separator: string = ""

      separator characters

    Returns string[]

    header values

StringSeparated2

  • StringSeparated2(separator1?: string, separator2?: string): string[][]
  • String header (GET String SHIORI/2.5)

    Parameters

    • Default value separator1: string = ""

      first level separator characters

    • Default value separator2: string = ""

      second level separator characters

    Returns string[][]

    header values

ValueSeparated

  • ValueSeparated(separator?: string): string[]
  • Value header (GET SHIORI/3.0)

    Parameters

    • Default value separator: string = ""

      separator characters

    Returns string[]

    header values

ValueSeparated2

  • ValueSeparated2(separator1?: string, separator2?: string): string[][]
  • Value header (GET SHIORI/3.0)

    Parameters

    • Default value separator1: string = ""

      first level separator characters

    • Default value separator2: string = ""

      second level separator characters

    Returns string[][]

    header values

get

  • get(name: string): undefined | string
  • get header

    Parameters

    • name: string

      header name

    Returns undefined | string

    header value

get_separated

  • get_separated(name: string, separator?: string): undefined | string[]
  • get header separated by \x01 or some as an array

    Parameters

    • name: string

      header name

    • Default value separator: string = ""

      separator characters

    Returns undefined | string[]

    header values

get_separated2

  • get_separated2(name: string, separator1?: string, separator2?: string): undefined | string[][]
  • get header separated by \x02 and \x01 or some as an array

    Parameters

    • name: string

      header name

    • Default value separator1: string = ""

      first level separator characters

    • Default value separator2: string = ""

      second level separator characters

    Returns undefined | string[][]

    header values

references

  • references(): (undefined | string)[]

set

  • set(name: string, value: string | undefined): undefined | string
  • set header

    header will be deleted if value == undefined

    Parameters

    • name: string

      header name

    • value: string | undefined

      header value

    Returns undefined | string

    header value

setStringSeparated

  • setStringSeparated(value: string[], separator?: string): string
  • set String header (GET String SHIORI/2.5)

    Parameters

    • value: string[]

      header values

    • Default value separator: string = ""

      separator characters

    Returns string

    header value

setStringSeparated2

  • setStringSeparated2(value: string[][], separator1?: string, separator2?: string): string
  • set String header (GET String SHIORI/2.5)

    Parameters

    • value: string[][]

      header values

    • Default value separator1: string = ""

      first level separator characters

    • Default value separator2: string = ""

      second level separator characters

    Returns string

    header value

setValueSeparated

  • setValueSeparated(value: string[], separator?: string): string
  • set Value header (GET SHIORI/3.0)

    Parameters

    • value: string[]

      header values

    • Default value separator: string = ""

      separator characters

    Returns string

    header value

setValueSeparated2

  • setValueSeparated2(value: string[][], separator1?: string, separator2?: string): string
  • set Value header (GET SHIORI/3.0)

    Parameters

    • value: string[][]

      header values

    • Default value separator1: string = ""

      first level separator characters

    • Default value separator2: string = ""

      second level separator characters

    Returns string

    header values

set_separated

  • set_separated(name: string, value: string[], separator?: string): string
  • set header separated by \x01 or some as an array

    Parameters

    • name: string

      header name

    • value: string[]

      header values

    • Default value separator: string = ""

      separator characters

    Returns string

    header value

set_separated2

  • set_separated2(name: string, value: string[][], separator1?: string, separator2?: string): string
  • set header separated by \x02 and \x01 or some as an array

    Parameters

    • name: string

      header name

    • value: string[][]

      header values

    • Default value separator1: string = ""

      first level separator characters

    • Default value separator2: string = ""

      second level separator characters

    Returns string

    header value

toString

  • toString(): string

validate

  • validate(): void

Generated using TypeDoc