Skip to content

Does the request have content associated with it?

Usage

has_content(x)

Examples

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