http2:dart的HTTP2实现

时间:2021-04-03 07:57:48
【文件属性】:
文件名称:http2:dart的HTTP2实现
文件大小:118KB
文件格式:ZIP
更新时间:2021-04-03 07:57:48
Dart Dart的HTTP / 2 该库在双向字节流的顶部提供了一个http / 2接口。 用法: 这是连接到支持http / 2的服务器,请求资源并遍历响应的最小示例。 import 'dart:convert' ; import 'dart:io' ; import 'package:http2/http2.dart' ; main () async { var uri = Uri . parse ( 'https://www.google.com/' ); var transport = new ClientTransportConnection . viaSocket ( await SecureSocket . connect ( uri.host, uri.port, supportedProtocols : [ 'h2' ],
【文件预览】:
http2-master
----example()
--------display_headers.dart(2KB)
----.test_config(53B)
----dart_test.yaml(70B)
----.github()
--------workflows()
----analysis_options.yaml(836B)
----test()
--------client_test.dart(28KB)
--------client_websites_test.dart(5KB)
--------src()
--------multiprotocol_server_test.dart(4KB)
--------certificates()
--------transport_test.dart(19KB)
--------server_test.dart(8KB)
----experimental()
--------server_chain.pem(3KB)
--------server_key.pem(2KB)
--------server.dart(5KB)
----LICENSE(1KB)
----CONTRIBUTING.md(2KB)
----manual_test()
--------out_of_stream_ids_test.dart(2KB)
----AUTHORS(246B)
----.gitignore(93B)
----pubspec.yaml(269B)
----CHANGELOG.md(2KB)
----lib()
--------transport.dart(8KB)
--------src()
--------multiprotocol_server.dart(5KB)
--------http2.dart(2KB)
----README.md(2KB)

网友评论