OKHTTP(面試二)

一、OkHttp 創建鏈接的過程,主要涉及到的幾個類包括 StreamAllocation、RealConnection 以及 HttpCodec。 二、首先在RetryAndFollowupIntercept 中建立 StreamAllocation 對象, 到 Connection 中建立 RealConnection 和 HttpCodec, 三、OkHttp 中的鏈接由RealConnec
相關文章
相關標籤/搜索