NSURLRequest(CLUNetworkAdditions)
@interface NSURLRequest (CLUNetworkAdditions)
NSURLRequest (CLUNetworkAdditions) category contains method to parse NSURLRequest properties and encode them into json like dictionary
To be able to include NSURLRequest properties into Clue report (for Network module)
-
Generate URL request dictionary which includes class name, URL, allHTTPHeaderFields, HTTPMethod, HTTPShouldHandleCookies and HTTPBody for current
NSURLRequestobjectWarning
This method doesn’t have any input, it generates dictionary based on current
NSURLRequestobject@code {
class
:, URL
:, allHTTPHeaderFields
:, HTTPMethod
:, HTTPShouldHandleCookies
:, HTTPBody
:} Declaration
Objective-C
- (NSDictionary *)clue_requestProperties;Swift
func clue_requestProperties() -> [AnyHashable : Any]!Return Value
URL Request dictionary with data from current
NSURLRequestobject
NSURLRequest(CLUNetworkAdditions) Category Reference