def to_curl(payload='PAYLOAD')
        payload = encode_payload(payload)

        HTTPRequest.new(
          @url, request_method: @request_method,