blob: 13e6d4223dc7ba7fa9daa748faf39f0f600892c2 [file] [log] [blame]
//
// WXPrettyStringPrinter.h
// PonyDebugger
//
// Created by Dave Apgar on 2/28/13.
//
// Licensed to Square, Inc. under one or more contributor license agreements.
// See the LICENSE file distributed with this work for the terms under
// which Square, Inc. licenses this file to you.
//
#import <Foundation/Foundation.h>
@protocol WXPrettyStringPrinting <NSObject>
- (BOOL)canPrettyStringPrintRequest:(NSURLRequest *)request;
- (BOOL)canPrettyStringPrintResponse:(NSURLResponse *)response withRequest:(NSURLRequest *)request;
- (NSString *)prettyStringForData:(NSData *)data forRequest:(NSURLRequest *)request;
- (NSString *)prettyStringForData:(NSData *)data forResponse:(NSURLResponse *)response request:(NSURLRequest *)request;
@end
@interface WXTextPrettyStringPrinter : NSObject <WXPrettyStringPrinting>
@end
@interface WXJSONPrettyStringPrinter : NSObject <WXPrettyStringPrinting>
@property (nonatomic, strong, readonly) NSSet *redactedFields;
- (id)initWithRedactedFields:(NSArray *)redactedFields;
- (void)addRedactedField:(NSString *)field;
@end