Package com. ayvytr. okhttploginterceptor
Types
Logging Interceptor
Link copied to clipboard
class LoggingInterceptor @JvmOverloads constructor(showLog: Boolean, isShowAll: Boolean, tag: String, priority: Priority, visualFormat: Boolean, maxLineLength: Int, printer: IPrinter?) : Interceptor
Content copied to clipboard
OkHttp拦截器,有打印请求头,请求体,响应头,响应体的功能,3.0.0开始精简了配置,打印模式精简为2种,详细配置 见参数说明.
Functions
body String
Link copied to clipboard
format As Possible
Link copied to clipboard
fun RequestBody.formatAsPossible(visualFormat: Boolean = true, maxLineLength: Int = LoggingInterceptor.MAX_LINE_LENGTH): List<String>
Content copied to clipboard
fun ResponseBody.formatAsPossible(visualFormat: Boolean = true, maxLineLength: Int = LoggingInterceptor.MAX_LINE_LENGTH): List<String>
Content copied to clipboard
fun String.formatAsPossible(visualFormat: Boolean, contentType: MediaType?, maxLineLength: Int = LoggingInterceptor.MAX_LINE_LENGTH): List<String>
Content copied to clipboard
is Guess Json
Link copied to clipboard
is Parsable
Link copied to clipboard
是否可以解析
is Unreadable
Link copied to clipboard
json Format
Link copied to clipboard