mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
Give sceNpWebApiAbortHandle, sceNpWebApiAddHttpRequestHeader, sceNpWebApiCheckTimeout, sceNpWebApiCreateMultipartRequest, sceNpWebApiSendRequest2, sceNpWebApiSetHandleTimeout, sceNpWebApiSetMultipartContentType and sceNpWebApiSetRequestTimeout their prototypes and the offline behaviour of the existing model. Requests keep a multipart flag and a timeout whose timer starts on the first send; CheckTimeout aborts expired requests at most once per millisecond. The timeout unit is unverified: shadPS4 logs it as milliseconds but adds it to microsecond process time, which is what is done here. Handles created from SDK 3.00 get a timer slot. Headers and multipart content types are validated and dropped, since nothing is sent. Multipart parts and UtilityParseNpId still throw.