NSURLResponse(CLUNetworkAdditions)

@interface NSURLResponse (CLUNetworkAdditions)

NSURLResponse (CLUNetworkAdditions) category contains method to parse NSURLResponse properties and encode them into json like dictionary To be able to include NSURLResponse properties into Clue report (for Network module)

  • Generate URL response dictionary which includes class name, MIME type, URL and expectedContentLength for current NSURLResponse object

    Warning

    This method doesn’t have any input, it generates dictionary based on current NSURLResponse object

    @code { class : , MIMEType : , URL : , expectedContentLength : }

    Declaration

    Objective-C

    - (NSDictionary *)clue_responseProperties;

    Swift

    func clue_responseProperties() -> [AnyHashable : Any]!

    Return Value

    URL response dictionary with data from current NSURLResponse object