Home
last modified time | relevance | path

Searched refs:HTTP (Results 1 – 25 of 176) sorted by relevance

12345678

/ohos5.0/commonlibrary/rust/ylong_http/
H A DREADME_zh.md5 ylong_http 构建了完整的 HTTP 能力,支持用户使用 HTTP 能力完成通信场景的需求。
11 ylong_http 向 OpenHarmony 系统服务层中的网络协议栈模块提供 HTTP 协议支持,经由网络协议栈模块帮助上层应用建立 HTTP 通信能力。
20 - `ylong_http`:提供 HTTP 能力的系统组件。
33 `ylong_http_client` 模块负责提供 HTTP 客户端功能,能够支持用户发送 HTTP 请求,并接收 HTTP 响应,内部又分为三个主要部分:
36 - `Util`:同步和异步的 HTTP 客户端部分实现共通,例如自动重定向、HTTP 代理等。
41 - `Client`:对外提供 HTTP 客户端的基本接口,例如配置客户端的相关选项,发送 HTTP 请求等。
48 - `Redirect`:HTTP 自动重定向能力。当 HTTP 响应返回重定向相关的状态码时,HTTP 客户端会进行自动重定向,并自动发送新的请求到下一跳。
49 - `Proxy`:HTTP 代理能力。发送 HTTP 请求时,向代理发送而非直接发送给原始服务器,然后由代理服务器返回原始服务器的响应。
54 - `Request`:HTTP 请求基础能力,根据 `RFC9110` 规定实现了 HTTP 请求的所有内容和行为。HTTP 请求主要用于向指定服务器发送请求。
55 - `Response`:HTTP 响应基础能力,根据 `RFC9110` 规定实现了 HTTP 响应的所有内容和行为。HTTP 响应主要是服务器针对客户端请求的回应。
[all …]
H A DREADME.md5 `ylong_http` has built a complete HTTP capability, supporting users to use HTTP
15 upper layer applications build HTTP communication capabilities.
37 …dule is responsible for providing HTTP client functions, which can support users to send HTTP requ…
40 - `Util`: The synchronous and asynchronous HTTP client parts are common, such as automatic redirect…
52 - `Redirect`: HTTP automatic redirection capability. When the HTTP response returns a status code r…
58 …he basic capability of HTTP requests, which implements all the content and behaviors of HTTP reque…
59 … basic capability of HTTP response, which implements all the content and behavior of HTTP response…
61HTTP message body capability, according to `RFC9110` regulations to achieve all the content and be…
93 │ │ ├── h1 # HTTP/1.1 components
94 │ │ ├── h2 # HTTP/2 components
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/
H A Djs-apis-netErrorList.md168 |ERR_HTTP2_PROTOCOL_ERROR | -337 | HTTP/2协议错误。 |
182 |ERR_HTTP2_SERVER_REFUSED_STREAM | -351 | HTTP/2 服务器拒绝流。|
183 |ERR_HTTP2_PING_FAILED | -352 | HTTP/2 ping 失败。 |
190 |ERR_HTTP2_FLOW_CONTROL_ERROR | -361 | 对等方违反了HTTP/2流控制。|
191 |ERR_HTTP2_FRAME_SIZE_ERROR | -362 | 对等方发送了大小不正确的HTTP/2帧。 |
197 |ERR_INVALID_HTTP_RESPONSE | -370 | 服务器应返回 HTTP/1.x 响应,但未返回。而不是将其视为 HTTP/0.9,返回此错误。|
199 |ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED | -372 | 收到带有 NO_ERROR 错误代码的 HTTP/2 RST_STREAM 帧。此错误应由 HTTP
202 |ERR_TOO_MANY_RETRIES | -375 | 由于身份验证或证书无效,HTTP事务重试次数过多。|
203 |ERR_HTTP2_STREAM_CLOSED | -376 | 在已关闭的流上收到一个 HTTP/2 帧。|
221 |ERR_CACHE_LOCK_TIMEOUT | -409 | HTTP缓存的内部错误代码。|
[all …]
H A D_web.md814 | ARKWEB_ERR_HTTP2_PROTOCOL_ERROR | 存在一个HTTP/2协议错误。 |
829 | ARKWEB_ERR_HTTP2_PING_FAILED | HTTP/2服务器未响应PING消息。 |
843 | ARKWEB_ERR_INVALID_HTTP_RESPONSE | 服务器应返回HTTP/1.x响应,但未返回。而不是将其视为HTTP/0.9,返回此错误。 |
845 | ARKWEB_ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED | 收到带有NO_ERROR错误代码的HTTP/2 RST_STREAM帧。此错误应由HTTP/2代…
849 | ARKWEB_ERR_HTTP2_STREAM_CLOSED | 在已关闭的流上收到一个HTTP/2帧。 |
867 | ARKWEB_ERR_CACHE_LOCK_TIMEOUT | HTTP缓存的内部错误代码。 |
1109 对于内置的HTTP、HTTPS、FILE、FTP、ABOUT和DATA协议,不应调用此函数。
2055 获取ArkWeb_Response的HTTP状态码。
2069 ArkWeb_Response的HTTP状态码。如果ArkWeb_Response无效,则为-1。
2223 为ArkWeb_Response对象设置一个HTTP状态码。
[all …]
/ohos5.0/docs/zh-cn/application-dev/network/
H A Dhttp-request.md1 # HTTP数据请求
9 HTTP数据请求功能主要由http模块提供。
108 // 取消订阅HTTP响应头事件
121 3. 调用该对象的on()方法,可以根据业务需要订阅HTTP响应头事件、HTTP流式响应数据接收事件、HTTP流式响应数据接收进度事件和HTTP流式响应数据接收完毕事件。
134 // 用于订阅HTTP响应头事件
138 // 用于订阅HTTP流式响应数据接收事件
148 // 用于订阅HTTP流式响应数据接收完毕事件
152 // 用于订阅HTTP流式响应数据接收进度事件
181 // 取消订阅HTTP响应头事件
183 // 取消订阅HTTP流式响应数据接收事件
[all …]
/ohos5.0/docs/en/application-dev/network/
H A Dhttp-request.md1 # HTTP Data Request
5 An application can initiate a data request over HTTP. Common HTTP methods include **GET**, **POST**…
9 The HTTP request function is mainly implemented by the HTTP module.
42 6. Call **off()** to unsubscribe from HTTP response header events.
50 // Each httpRequest corresponds to an HTTP request task and cannot be reused.
52 …n for the HTTP Response Header event, which is returned earlier than the result of the HTTP reques…
108 // Unsubscribe from HTTP Response Header events.
121HTTP response header events as well as events indicating receiving of HTTP streaming responses, pr…
134 // Subscribe to HTTP response header events.
138 // Subscribe to events indicating receiving of HTTP streaming responses.
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/tests/
H A Dsdv_async_http_on_tcp.rs36 HTTP; in sdv_async_client_send_request()
54 HTTP; in sdv_async_client_send_request()
71 HTTP; in sdv_async_client_send_request()
89 HTTP; in sdv_async_client_send_request()
107 HTTP; in sdv_async_client_send_request()
135 HTTP; in sdv_client_send_request_repeatedly()
176 HTTP; in sdv_client_making_multiple_connections()
H A Dsdv_async_http.rs36 HTTP; in sdv_async_client_send_request()
55 HTTP; in sdv_async_client_send_request()
73 HTTP; in sdv_async_client_send_request()
92 HTTP; in sdv_async_client_send_request()
109 HTTP; in sdv_async_client_send_request()
138 HTTP; in sdv_client_send_request_repeatedly()
179 HTTP; in sdv_client_making_multiple_connections()
H A Dsdv_sync_http_on_tcp.rs36 HTTP; in sdv_synchronized_client_send_request_to_tcp()
64 HTTP; in sdv_synchronized_client_send_request_repeatedly_to_tcp()
103 HTTP; in sdv_client_making_multiple_connections()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/
H A Djs-apis-http.md3 本模块提供HTTP数据请求能力。应用可以通过HTTP发起一个数据请求,支持常见的GET、POST、OPTIONS、HEAD、PUT、DELETE、TRACE、CONNECT方法。
86 // 取消订阅HTTP响应头事件
92 // 取消订阅HTTP响应头事件
109 创建一个HTTP请求,里面包括发起请求、中断请求、订阅/取消订阅HTTP Response Header事件。每一个HttpRequest对象对应一个HTTP请求。如需发起多个HTTP请求,须为每个
863 订阅HTTP流式响应数据接收事件。
890 取消订阅HTTP流式响应数据接收事件。
920 订阅HTTP流式响应数据接收完毕事件。
947 取消订阅HTTP流式响应数据接收完毕事件。
977 订阅HTTP流式响应数据接收进度事件。
1034 订阅HTTP网络请求数据发送进度事件。
[all …]
H A Derrorcode-net-http.md1 # HTTP错误码
113 服务器出错,返回了非HTTP格式的数据。
390 ## 2300061 无法识别或错误的HTTP编码格式
394 Invalid HTTP encoding format.
398 无法识别或错误的HTTP编码格式。
402 HTTP编码格式不正确。
/ohos5.0/docs/en/application-dev/faqs/
H A Dfaqs-network-management.md4 ## What are the data formats supported by extraData in an HTTP request? (API 9)
8 **extraData** indicates additional data in an HTTP request. It varies depending on the HTTP request…
10 - If the HTTP request uses a POST or PUT method, **extraData** serves as the content of the HTTP re…
17 ## What does error code 28 mean in the response to an HTTP request? (API 9)
21 Error code 28 is reported after an HTTP request is initiated.
36 Error code 6 is reported after an HTTP request is initiated.
102 ## How HTTP Requests Are Transmitted in JSON Format (API 9)
164 Use the **\@ohos.net.http** module to initiate an HTTP request.
166 1. Import the **http** module and create an HTTP request.
168 2. Set the request URL and parameters and initiate the HTTP request.
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/docs/
H A Duser_guide.md3 ylong_http 提供了 HTTP 各个版本下的协议所需的各种基础组件和扩展组件,方便用户组织所需的 HTTP 结构。
7 - ylong_http_client 库:HTTP 客户端库
8 - ylong_http 库:HTTP 协议及组件库
10 其中 ylong_http_client 库提供了 HTTP 客户端的功能,ylong_http 库提供了 HTTP 协议的基础组件。
24 - 支持异步 HTTP 客户端创建
25 - 支持 HTTP/1.1
32 用户可以使用 `ylong_http_client::async_impl::Client` 来生成一个异步 HTTP 客户端。该功能被 feature `async` 控制。
75 用户可以使用 `Request` 结构提供的快速接口来生成 HTTP 请求。
/ohos5.0/docs/zh-cn/readme/
H A D网络管理子系统.md12 - 网络协议栈部件:主要功能是提供基础的网络协议栈和对应的JS API,包括HTTP、HTTPS、WebSocket、TCP/UDP/TLS Socket等基础网络协议栈能力。
105 // 每一个httpRequest对应一个HTTP请求任务,不可复用
107 // 用于订阅HTTP响应头,此接口会比request请求先返回。可以根据业务需要订阅此消息
113 // 填写HTTP请求的URL地址,可以带参数也可以不带参数。URL地址需要开发者自定义。请求的参数可以在extraData中指定
134 // data.result为HTTP响应内容,可根据业务需要进行解析
137 // data.header为HTTP响应头,可根据业务需要进行解析
142 // 取消订阅HTTP响应头事件
/ohos5.0/docs/zh-cn/application-dev/media/media/
H A Dplayback-url-setting-method.md11 **情况一:播放HTTP/HTTPS媒体资源**
27 **情况三:设置HTTP请求头信息播放**
29 当服务器需要校验HTTP请求头信息时,可通过[createMediaSourceWithUrl](../../reference/apis-media-kit/js-apis-media.md#cr…
33 // 创建mediaSource实例对象,设置媒体来源,定制HTTP请求,如需要,可以键值对的形式设置User-Agent、Cookie、Referer等字段
62 // 按需设置HTTP请求头
64 // 通过本地m3u8的URL和HTTP请求头构造mediaSource媒体来源
99 // 按需设置HTTP请求头
101 // 通过本地m3u8的URL和HTTP请求头构造mediaSource媒体来源
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/
H A DCargo.toml5 description = "HTTP utility implementation"
19 http1_1 = [] # Uses HTTP/1.1.
20 http2 = [] # Uses HTTP/2.
21 http3 = [] # Uses HTTP/3.
/ohos5.0/docs/en/readme/
H A Dnetwork-management.md12 - Network protocol stacks: provides basic network protocol stacks (such as HTTP, HTTPS, WebSocket…
95 …n()** to subscribe to HTTP response header events. This API returns a response earlier than the re…
96 …nitiate a network request. You need to pass in the URL and optional parameters of the HTTP request.
98 6. Call **off()** to unsubscribe from HTTP response header events.
105 // Each httpRequest corresponds to an HTTP request task and cannot be reused.
107 …n for the HTTP Response Header event, which is returned earlier than the result of the HTTP reques…
134 … // data.result carries the HTTP response. Parse the response based on service requirements.
137 … // data.header carries the HTTP response header. Parse the content based on service requirements.
142 // Unsubscribe from HTTP Response Header events.
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/
H A Djs-apis-http.md3 …**http** module provides the HTTP data request capability. An application can initiate a data requ…
25 …n for the HTTP Response Header event, which is returned earlier than the result of the HTTP reques…
86 // Unsubscribe from HTTP Response Header events.
109HTTP request. You can use this API to initiate or destroy an HTTP request, or enable or disable li…
134 Defines an HTTP request task. Before invoking methods of **HttpRequest**, you must call **createHtt…
435 Destroys an HTTP request.
1117 Defines an HTTP request method.
1136 Enumerates the response codes for an HTTP request.
1181 Defines the response to an HTTP request.
1492 Enumerates HTTP data types.
[all …]
H A Djs-apis-net-connection-sys.md20 Obtains the global HTTP proxy configuration of the network. This API uses an asynchronous callback …
30 …If the global HTTP proxy configuration of the network is obtained successfully, **error** is **und…
57 Obtains the global HTTP proxy configuration of the network. This API uses a promise to return the r…
94 Sets the global HTTP proxy configuration of the network. This API uses an asynchronous callback to …
106 | httpProxy | [HttpProxy](js-apis-net-connection.md#httpproxy10) | Yes | Global HTTP proxy configu…
107 …back\<void> | Yes | Callback used to return the result. If the global HTTP proxy configuration…
146 Sets the global HTTP proxy configuration of the network. This API uses a promise to return the resu…
158 …tion.md#httpproxy10) | Yes | Global HTTP proxy configuration…
/ohos5.0/foundation/communication/netstack/
H A DREADME_zh.md7 网络协议栈模块作为电话子系统可裁剪部件,主要分为HTTP和socket模块;如图1:Http接口架构图;如图2:socket接口架构图;
71 …字段。<br />- 当HTTP请求为POST、PUT等方法时,此字段为HTTP请求的content,以UTF-8编码形式作为请求体。<sup>6+</sup><br />- 当HTTP请求为GE…
84 HTTP 请求方法。
88 | OPTIONS | HTTP 请求 OPTIONS。 |
89 | GET | HTTP 请求 GET。 |
90 | HEAD | HTTP 请求 HEAD。 |
91 | POST | HTTP 请求 POST。 |
92 | PUT | HTTP 请求 PUT。 |
93 | DELETE | HTTP 请求 DELETE。 |
94 | TRACE | HTTP 请求 TRACE。 |
[all …]
/ohos5.0/docs/zh-cn/application-dev/faqs/
H A Dfaqs-network-management.md10 - 当HTTP请求为POST、PUT方法时,此字段为HTTP请求的content。
12 - 当HTTP请求为GET、OPTIONS、DELETE、TRACE、CONNECT方法时,此字段为HTTP请求的参数补充,参数内容会拼接到URL中进行发送。
106HTTP协议消息头中,使用Content-Type来表示媒体类型信息。它被用来告诉服务端如何处理请求的数据,以及告诉客户端(一般是浏览器)如何解析响应的数据,比如显示图片,解析html或仅仅展示一…
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/
H A Djs-apis-netErrorList.md168 |ERR_HTTP2_PROTOCOL_ERROR | -337 | The HTTP/2 protocol occurs error.|
178 |ERR_INCOMPLETE_HTTP2_HEADERS | -347 | The HTTP/2 headers are incomplete.|
182 |ERR_HTTP2_SERVER_REFUSED_STREAM | -351 | The HTTP/2 server refuses the stream.|
183 |ERR_HTTP2_PING_FAILED | -352 | The HTTP/2 ping failed.|
190 |ERR_HTTP2_FLOW_CONTROL_ERROR | -361 | The peer violates HTTP/2 flow control.|
191 |ERR_HTTP2_FRAME_SIZE_ERROR | -362 | The peer sends an HTTP/2 frame of an incorrect size.|
197 …_HTTP_RESPONSE | -370 | The server should return an **HTTP/1.x** response. But it returns an **HTT…
199 …_RECEIVED | -372 | An **HTTP/2 RST_STREAM** frame with **NO_ERROR** is received. This error should…
203 |ERR_HTTP2_STREAM_CLOSED | -376 | An HTTP/2 frame is received on the closed stream.|
204 |ERR_HTTP2_CLIENT_REFUSED_STREAM | -377 | The client refuses an HTTP/2 stream.|
[all …]
/ohos5.0/base/request/request/
H A DREADME_ZH.md68 - request服务不提供完整的HTTP/HTTPS SDK接口,只是HTTP/HTTPS SDK 的用户,如需此接口推荐使用[NetStack](https://gitee.com/open…
69 - 下载服务器需要支持HTTP协议的head方法,能够通过Content-length获取下载数据大小,否则下载任务失败。
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/
H A DCargo.toml5 description = "Ylong HTTP Client implementation"
33 http1_1 = ["ylong_http/http1_1"] # Uses HTTP/1.1.
34 http2 = ["ylong_http/http2", "ylong_http/huffman"] # Uses HTTP/2.
35 http3 = [] # Uses HTTP/3.
/ohos5.0/docs/en/application-dev/media/media/
H A Dplayback-url-setting-method.md11 **Case 1: playing HTTP/HTTPS media assets**
27 **Case 3: setting the HTTP request header information for playback**
29 If the server needs to verify the HTTP request header, you can set the HTTP request header informat…
33 …// Create a mediaSource instance, set the media source, and customize an HTTP request. If necessar…
62 // Set the HTTP request header as required.
64 // Construct the media source based on the local M3U8 file URL and HTTP request header.
99 // Set the HTTP request header as required.
101 // Construct the media source based on the local M3U8 file URL and HTTP request header.

12345678