Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Type Method

from(responseStr:)

Parses a string representing a response range in one of the following formats:
static func from<T>(responseStr: T) -> HTTPFields.ContentRange.Value? where T : StringProtocol

Return Value

A HTTPFields.ContentRange.Value if the responseStr is valid, nil otherwise.

Discussion

  • <range-start>-<range-end>/<size>

  • <range-start>-<range-end>/*

  • */<size>