Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Range

Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved. This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

Hierarchy

  • Range

Constructors

Properties

Methods

Constructors

constructor

  • new Range(startByte: number | null, endByte: number | null, contentLength: number | null): Range
  • Construct an instance of Range.

    Parameters

    • startByte: number | null

      The start byte, if given.

    • endByte: number | null

      The end byte, if given.

    • contentLength: number | null

      The content length as returned by the server, or null if unknown.

    Returns Range

Properties

Private contentLength

contentLength: number | null

The content length as returned by the server, or null if unknown.

Private endByte

endByte: number | null

The end byte, if given.

Private startByte

startByte: number | null

The start byte, if given.

Methods

Static parse

  • parse(value: string): undefined | Range