Learn R Programming

pkgDepTools (version 1.38.0)

parseContentLength: 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