Method: HTTPX::Response::Body#empty?

Defined in:
lib/httpx/response/body.rb

#empty?Boolean

whether the payload is empty.

Returns:

  • (Boolean)


120
121
122
# File 'lib/httpx/response/body.rb', line 120

def empty?
  @length.zero?
end