Learn R Programming

httr (version 1.4.2)

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
# NOT RUN {
has_content(POST("http://httpbin.org/post", body = FALSE))
has_content(HEAD("http://httpbin.org/headers"))
# }

Run the code above in your browser using DataLab