Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010702
async-request.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
403 B
Referenced Files
None
Subscribers
None
async-request.ts
View Options
import
{
request
,
RequestOptions
}
from
"http"
;
export
default
async
function
asyncRequest
(
options
:
RequestOptions
,
form_data
:
string
)
:
Promise
<
Record
<
string
,
unknown
>>
{
return
new
Promise
((
resolve
)
=>
{
const
req
=
request
(
options
,
(
res
)
=>
{
res
.
setEncoding
(
"utf-8"
);
res
.
on
(
"data"
,
(
chunk
)
=>
{
resolve
(
JSON
.
parse
(
chunk
));
});
});
req
.
write
(
form_data
);
req
.
end
();
});
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:46 (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
624719
Default Alt Text
async-request.ts (403 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment