{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"mockData"},{"kind":"text","text":": ["},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLRequest","preciseIdentifier":"s:22SwiftLibsCommunication14MockURLRequestV","text":"MockURLRequest"},{"kind":"text","text":" : "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLResponse","preciseIdentifier":"s:22SwiftLibsCommunication15MockURLResponseV","text":"MockURLResponse"},{"kind":"text","text":"]"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/swiftlibscommunication\/mockurlprotocol\/mockdata"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/mockData","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"The dictionary in which the mock requests with its respective mock responses will be injected."}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"mockData"},{"kind":"text","text":": ["},{"kind":"typeIdentifier","text":"MockURLRequest","preciseIdentifier":"s:22SwiftLibsCommunication14MockURLRequestV"},{"kind":"text","text":" : "},{"kind":"typeIdentifier","text":"MockURLResponse","preciseIdentifier":"s:22SwiftLibsCommunication15MockURLResponseV"},{"kind":"text","text":"]"}],"title":"mockData","roleHeading":"Type Property","role":"symbol","symbolKind":"property","externalID":"s:22SwiftLibsCommunication15MockURLProtocolC8mockDataSDyAA0D10URLRequestVAA0D11URLResponseVGvpZ","modules":[{"name":"SwiftLibsCommunication"}]},"hierarchy":{"paths":[["doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication","doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol"]]},"references":{"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication":{"role":"collection","title":"SwiftLibsCommunication","abstract":[],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication","kind":"symbol","type":"topic","url":"\/documentation\/swiftlibscommunication"},"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication/MockURLResponse":{"role":"symbol","title":"MockURLResponse","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"MockURLResponse"}],"abstract":[{"type":"text","text":"This model includes the data to be injected into an specific URL at the time of mocking its response."}],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLResponse","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"MockURLResponse"}],"url":"\/documentation\/swiftlibscommunication\/mockurlresponse"},"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication/MockURLRequest":{"role":"symbol","title":"MockURLRequest","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"MockURLRequest"}],"abstract":[{"type":"text","text":"This model includes the data to be injected into an specific URL at the time of mocking its request."}],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLRequest","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"MockURLRequest"}],"url":"\/documentation\/swiftlibscommunication\/mockurlrequest"},"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication/MockURLProtocol/mockData":{"role":"symbol","title":"mockData","fragments":[{"kind":"keyword","text":"static"},{"kind":"text","text":" "},{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"mockData"},{"kind":"text","text":": ["},{"kind":"typeIdentifier","text":"MockURLRequest","preciseIdentifier":"s:22SwiftLibsCommunication14MockURLRequestV"},{"kind":"text","text":" : "},{"kind":"typeIdentifier","text":"MockURLResponse","preciseIdentifier":"s:22SwiftLibsCommunication15MockURLResponseV"},{"kind":"text","text":"]"}],"abstract":[{"type":"text","text":"The dictionary in which the mock requests with its respective mock responses will be injected."}],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/mockData","kind":"symbol","type":"topic","url":"\/documentation\/swiftlibscommunication\/mockurlprotocol\/mockdata"},"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication/MockURLProtocol":{"role":"symbol","title":"MockURLProtocol","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"MockURLProtocol"}],"abstract":[{"type":"text","text":"This class overrides the "},{"type":"codeVoice","code":"URLProtocol"},{"type":"text","text":" protocol used by the "},{"type":"codeVoice","code":"URLSession"},{"type":"text","text":" to handle the loading of protocol-specific URL data so it is possible to mock URL response for testing purposes."}],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"MockURLProtocol"}],"url":"\/documentation\/swiftlibscommunication\/mockurlprotocol"}}}