def marshal_dump
      {
        method: method,
        body: body,
        headers: headers,
        path: path,
        params: params,
        options: options
      }
    end
def marshal_dump
      {
        method: method,
        body: body,
        headers: headers,
        path: path,
        params: params,
        options: options
      }
    end
Marshal serialization support.

 @return [Hash] the hash ready to be serialized in Marshal.