params property

  1. @override
JSONEncodable? get params
override

Implementation

@override
JSONEncodable? get params => JSONEncodableMap({
      'requestId': requestId,
      'loaderId': loaderId,
      'documentURL': '',
      'request': {
        'url': url,
        'method': requestMethod,
        'headers': headers.map((key, value) => MapEntry(key, value.join(''))),
        'initialPriority': 'Medium',
        'referrerPolicy': '',

        'hasPostData': data.isNotEmpty,
        'postData': String.fromCharCodes(data),
        // 'mixedContentType': 'none',
        // 'isSameSite': false
      },
      'timestamp': timestamp,
      'wallTime': timestamp,
      'initiator': {
        'type': 'script',
        'lineNumber': 0,
        'columnNumber': 0,
      },
      'redirectHasExtraInfo': false,
      // 'type': 'XHR',
      // 'hasUserGesture': false,
      //
      // 'frameId': '',
    });