httr (version 0.4)

has_content: Does the request have content associated with it?

Description

Does the request have content associated with it?

Usage

has_content(x)

Arguments

Examples

Run this code
has_content(POST("http://httpbin.org/post", body = FALSE))
has_content(HEAD("http://httpbin.org/headers"))

Run the code above in your browser using DataCamp Workspace