mirror of
https://github.com/square/okhttp.git
synced 2025-11-27 18:21:14 +03:00
Rename FramedConnection to Http2Connection.
Also rename HttpStream to HttpCodec. This is the interface implemented for both HTTP/1.1 and HTTP/2. The HTTP/2 codec creates a stream when it is used.
This commit is contained in:
@@ -13,15 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package okhttp3.internal.framed;
|
||||
package okhttp3.internal.http2;
|
||||
|
||||
import java.util.Collection;
|
||||
import okhttp3.internal.framed.hpackjson.Story;
|
||||
import okhttp3.internal.http2.hpackjson.Story;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Parameterized;
|
||||
|
||||
import static okhttp3.internal.framed.hpackjson.HpackJsonUtil.storiesForCurrentDraft;
|
||||
import static okhttp3.internal.http2.hpackjson.HpackJsonUtil.storiesForCurrentDraft;
|
||||
|
||||
@RunWith(Parameterized.class)
|
||||
public class HpackDecodeInteropTest extends HpackDecodeTestBase {
|
||||
@@ -13,15 +13,17 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package okhttp3.internal.framed;
|
||||
package okhttp3.internal.http2;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import okhttp3.internal.framed.hpackjson.Case;
|
||||
import okhttp3.internal.framed.hpackjson.HpackJsonUtil;
|
||||
import okhttp3.internal.framed.hpackjson.Story;
|
||||
import okhttp3.internal.framed.Header;
|
||||
import okhttp3.internal.framed.Hpack;
|
||||
import okhttp3.internal.http2.hpackjson.Case;
|
||||
import okhttp3.internal.http2.hpackjson.HpackJsonUtil;
|
||||
import okhttp3.internal.http2.hpackjson.Story;
|
||||
import okio.Buffer;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
@@ -13,11 +13,12 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package okhttp3.internal.framed;
|
||||
package okhttp3.internal.http2;
|
||||
|
||||
import java.util.Collection;
|
||||
import okhttp3.internal.framed.hpackjson.Case;
|
||||
import okhttp3.internal.framed.hpackjson.Story;
|
||||
import okhttp3.internal.framed.Hpack;
|
||||
import okhttp3.internal.http2.hpackjson.Case;
|
||||
import okhttp3.internal.http2.hpackjson.Story;
|
||||
import okio.Buffer;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package okhttp3.internal.framed.hpackjson;
|
||||
package okhttp3.internal.http2.hpackjson;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package okhttp3.internal.framed.hpackjson;
|
||||
package okhttp3.internal.http2.hpackjson;
|
||||
|
||||
import com.squareup.moshi.JsonAdapter;
|
||||
import com.squareup.moshi.Moshi;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package okhttp3.internal.framed.hpackjson;
|
||||
package okhttp3.internal.http2.hpackjson;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
Reference in New Issue
Block a user