1 line
9.5 KiB
JSON
Raw Permalink Normal View History

{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"MockURLProtocol"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/swiftlibscommunication\/mockurlprotocol"],"traits":[{"interfaceLanguage":"swift"}]}],"relationshipsSections":[{"identifiers":["doc:\/\/SwiftLibsCommunication\/objc(cs)NSURLProtocol"],"kind":"relationships","title":"Inherits From","type":"inheritsFrom"},{"identifiers":["doc:\/\/SwiftLibsCommunication\/objc(pl)NSObject","doc:\/\/SwiftLibsCommunication\/s7CVarArgP","doc:\/\/SwiftLibsCommunication\/s28CustomDebugStringConvertibleP","doc:\/\/SwiftLibsCommunication\/s23CustomStringConvertibleP","doc:\/\/SwiftLibsCommunication\/SQ","doc:\/\/SwiftLibsCommunication\/SH"],"kind":"relationships","title":"Conforms To","type":"conformsTo"}],"identifier":{"url":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol","interfaceLanguage":"swift"},"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."}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"MockURLProtocol"}],"title":"MockURLProtocol","roleHeading":"Class","role":"symbol","symbolKind":"class","externalID":"c:@M@SwiftLibsCommunication@objc(cs)MockURLProtocol","modules":[{"name":"SwiftLibsCommunication"}],"navigatorTitle":[{"kind":"identifier","text":"MockURLProtocol"}]},"hierarchy":{"paths":[["doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication"]]},"topicSections":[{"title":"Instance Methods","identifiers":["doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/startLoading()","doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/stopLoading()"]},{"title":"Type Properties","identifiers":["doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/mockData"]},{"title":"Type Methods","identifiers":["doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/canInit(with:)-3oxns","doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/canInit(with:)-8nlgj","doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/canonicalRequest(for:)"]}],"references":{"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication/MockURLProtocol/stopLoading()":{"role":"symbol","title":"stopLoading()","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"stopLoading"},{"kind":"text","text":"()"}],"abstract":[],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/MockURLProtocol\/stopLoading()","kind":"symbol","type":"topic","url":"\/documentation\/swiftlibscommunication\/mockurlprotocol\/stoploading()"},"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication":{"role":"collection","title":"SwiftLibsCommunication","abstract":[],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication","kind":"symbol","type":"topic","url":"\/documentation\/swiftlibscommunication"},"doc://SwiftLibsCommunication/s23CustomStringConvertibleP":{"type":"unresolvable","title":"Swift.CustomStringConvertible","identifier":"doc:\/\/SwiftLibsCommunication\/s23CustomStringConvertibleP"},"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication/MockURLProtocol/canInit(with:)-8nlgj":{"role":"symbol","title":"canInit(with:)","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text