global

def body_match?(request_body)

def body_match?(request_body)
  return true if body.to_s.empty?
  case body
  when Proc
    body.call(request_body)
  else
    request_body == body
  end
end