parseContentLength {pkgDepTools}R Documentation

Parse HTTP Response Header for Content Length

Description

Given a string containing an HTTP response header, extract the "Content-Length" header and convert it to a numeric value. If no such header is found, return NA.

Usage

parseContentLength(h)

Arguments

h

string containing the HTTP response header

Details

Internal function

Author(s)

Seth Falcon


[Package pkgDepTools version 1.20.0 Index]