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)

r-lib/httr documentation built on Nov. 5, 2023, 7:26 a.m.