has_content {httr}R Documentation

Does the request have content associated with it?

Description

Does the request have content associated with it?

Usage

has_content(x)

Examples

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

[Package httr version 1.3.1 Index]