TNRequestMiddlewareProtocol
public protocol TNRequestMiddlewareProtocol
This protocol is used to register a plugin that can be used by TNConfiguration to modify body and headers. For example it can be used with Crypt to encrypt / decrypt your data
-
Undocumented
Declaration
Swift
func modifyBodyBeforeSend(with params: [String : Any?]?) -> [String : Any?]?
-
Undocumented
Declaration
Swift
func modifyBodyAfterResponse(with data: Data) -> Data
-
Undocumented
Declaration
Swift
func modifyHeadersBeforeSend(with headers: [String : String]) -> [String : String]