Skip to main content

request_ctor

Function request_ctor 

Source
pub(crate) fn request_ctor(
    _it: &mut Interp,
    _t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

new Request(input, options?)(Fetch API。fetch(new Request(url, opts)) という 定番パターンで使われる)が丸ごと未対応で Request is not defined になっていた。 input は URL 文字列、または別の Request.url/.method 等をコピーする clone 的な使い方)のどちらも受け付ける。