function record(data) {
      const url = data.url || 'https://example.com';
      const scheme = url.split(':')[0];
      return Object.assign(
        new NetworkRequest(),
        {
          url,
          finished: !!data.networkEndTime,
          parsedURL: {scheme},
        },
        data
      );
    }
@param {Partial<NetworkRequest>} data
@return {NetworkRequest}