HttpEvent
响应流中所有可能出现的事件的联合类型。
Union type for all possible events on the response stream.
type HttpEvent<T> = HttpSentEvent | HttpHeaderResponse | HttpResponse<T> | HttpProgressEvent | HttpUserEvent<T>;
说明
其类型取决于所期待的响应类型。
Typed according to the expected type of the response.