has_content: Does the request have content associated with it?

View source: R/content.r

has_contentR Documentation

Does the request have content associated with it?

Description

Does the request have content associated with it?

Usage

has_content(x)

Examples

## Not run: 
has_content(POST("http://httpbin.org/post", body = FALSE))
has_content(HEAD("http://httpbin.org/headers"))

## End(Not run)

httr documentation built on Aug. 15, 2023, 9:08 a.m.