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.

其类型取决于所期待的响应类型。