Ejemplo n.º 1
0
 def __init__(
     self,
     requestId: Union['RequestId', dict],
     request: Union['Network.Request', dict],
     frameId: Union['Page.FrameId', dict],
     resourceType: Union['Network.ResourceType', dict],
     responseErrorReason: Union['Network.ErrorReason', dict, None] = None,
     responseStatusCode: Union['int', dict, None] = None,
     responseHeaders: Union['[HeaderEntry]', dict, None] = None,
     networkId: Union['RequestId', dict, None] = None,
 ):
     if isinstance(requestId, dict):
         requestId = RequestId(**requestId)
     self.requestId = requestId
     if isinstance(request, dict):
         request = Network.Request(**request)
     self.request = request
     if isinstance(frameId, dict):
         frameId = Page.FrameId(**frameId)
     self.frameId = frameId
     if isinstance(resourceType, dict):
         resourceType = Network.ResourceType(**resourceType)
     self.resourceType = resourceType
     if isinstance(responseErrorReason, dict):
         responseErrorReason = Network.ErrorReason(**responseErrorReason)
     self.responseErrorReason = responseErrorReason
     if isinstance(responseStatusCode, dict):
         responseStatusCode = int(**responseStatusCode)
     self.responseStatusCode = responseStatusCode
     if isinstance(responseHeaders, dict):
         responseHeaders = [HeaderEntry](**responseHeaders)
     self.responseHeaders = responseHeaders
     if isinstance(networkId, dict):
         networkId = RequestId(**networkId)
     self.networkId = networkId
Ejemplo n.º 2
0
 def __init__(self,
              requestId: Union['RequestId', dict],
              loaderId: Union['LoaderId', dict],
              timestamp: Union['MonotonicTime', dict],
              type: Union['Page.ResourceType', dict],
              response: Union['Response', dict],
              frameId: Union['Page.FrameId', dict, None] = None,
              ):
     if isinstance(requestId, dict):
         requestId = RequestId(**requestId)
     self.requestId = requestId
     if isinstance(loaderId, dict):
         loaderId = LoaderId(**loaderId)
     self.loaderId = loaderId
     if isinstance(timestamp, dict):
         timestamp = MonotonicTime(**timestamp)
     self.timestamp = timestamp
     if isinstance(type, dict):
         type = Page.ResourceType(**type)
     self.type = type
     if isinstance(response, dict):
         response = Response(**response)
     self.response = response
     if isinstance(frameId, dict):
         frameId = Page.FrameId(**frameId)
     self.frameId = frameId
Ejemplo n.º 3
0
 def __init__(
     self,
     frameId: Union['Page.FrameId', dict],
     manifestURL: Union['str', dict],
     status: Union['int', dict],
 ):
     if isinstance(frameId, dict):
         frameId = Page.FrameId(**frameId)
     self.frameId = frameId
     if isinstance(manifestURL, dict):
         manifestURL = str(**manifestURL)
     self.manifestURL = manifestURL
     if isinstance(status, dict):
         status = int(**status)
     self.status = status
Ejemplo n.º 4
0
 def __init__(self,
              requestId: Union['RequestId', dict],
              loaderId: Union['LoaderId', dict],
              documentURL: Union['str', dict],
              request: Union['Request', dict],
              timestamp: Union['MonotonicTime', dict],
              wallTime: Union['TimeSinceEpoch', dict],
              initiator: Union['Initiator', dict],
              redirectResponse: Union['Response', dict, None] = None,
              type: Union['Page.ResourceType', dict, None] = None,
              frameId: Union['Page.FrameId', dict, None] = None,
              ):
     if isinstance(requestId, dict):
         requestId = RequestId(**requestId)
     self.requestId = requestId
     if isinstance(loaderId, dict):
         loaderId = LoaderId(**loaderId)
     self.loaderId = loaderId
     if isinstance(documentURL, dict):
         documentURL = str(**documentURL)
     self.documentURL = documentURL
     if isinstance(request, dict):
         request = Request(**request)
     self.request = request
     if isinstance(timestamp, dict):
         timestamp = MonotonicTime(**timestamp)
     self.timestamp = timestamp
     if isinstance(wallTime, dict):
         wallTime = TimeSinceEpoch(**wallTime)
     self.wallTime = wallTime
     if isinstance(initiator, dict):
         initiator = Initiator(**initiator)
     self.initiator = initiator
     if isinstance(redirectResponse, dict):
         redirectResponse = Response(**redirectResponse)
     self.redirectResponse = redirectResponse
     if isinstance(type, dict):
         type = Page.ResourceType(**type)
     self.type = type
     if isinstance(frameId, dict):
         frameId = Page.FrameId(**frameId)
     self.frameId = frameId
Ejemplo n.º 5
0
 def __init__(self,
              interceptionId: Union['InterceptionId', dict],
              request: Union['Request', dict],
              frameId: Union['Page.FrameId', dict],
              resourceType: Union['Page.ResourceType', dict],
              isNavigationRequest: Union['bool', dict],
              redirectHeaders: Union['Headers', dict, None] = None,
              redirectStatusCode: Union['int', dict, None] = None,
              redirectUrl: Union['str', dict, None] = None,
              authChallenge: Union['AuthChallenge', dict, None] = None,
              ):
     if isinstance(interceptionId, dict):
         interceptionId = InterceptionId(**interceptionId)
     self.interceptionId = interceptionId
     if isinstance(request, dict):
         request = Request(**request)
     self.request = request
     if isinstance(frameId, dict):
         frameId = Page.FrameId(**frameId)
     self.frameId = frameId
     if isinstance(resourceType, dict):
         resourceType = Page.ResourceType(**resourceType)
     self.resourceType = resourceType
     if isinstance(isNavigationRequest, dict):
         isNavigationRequest = bool(**isNavigationRequest)
     self.isNavigationRequest = isNavigationRequest
     if isinstance(redirectHeaders, dict):
         redirectHeaders = Headers(**redirectHeaders)
     self.redirectHeaders = redirectHeaders
     if isinstance(redirectStatusCode, dict):
         redirectStatusCode = int(**redirectStatusCode)
     self.redirectStatusCode = redirectStatusCode
     if isinstance(redirectUrl, dict):
         redirectUrl = str(**redirectUrl)
     self.redirectUrl = redirectUrl
     if isinstance(authChallenge, dict):
         authChallenge = AuthChallenge(**authChallenge)
     self.authChallenge = authChallenge
Ejemplo n.º 6
0
 def __init__(
     self,
     requestId: Union['RequestId', dict],
     request: Union['Network.Request', dict],
     frameId: Union['Page.FrameId', dict],
     resourceType: Union['Network.ResourceType', dict],
     authChallenge: Union['AuthChallenge', dict],
 ):
     if isinstance(requestId, dict):
         requestId = RequestId(**requestId)
     self.requestId = requestId
     if isinstance(request, dict):
         request = Network.Request(**request)
     self.request = request
     if isinstance(frameId, dict):
         frameId = Page.FrameId(**frameId)
     self.frameId = frameId
     if isinstance(resourceType, dict):
         resourceType = Network.ResourceType(**resourceType)
     self.resourceType = resourceType
     if isinstance(authChallenge, dict):
         authChallenge = AuthChallenge(**authChallenge)
     self.authChallenge = authChallenge