summaryrefslogtreecommitdiff
path: root/runtime/ops/url.rs
blob: 4add9132d6f769dd0a33fd85376b66a1cc19ceb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
use deno_url::op_url_parse;
use deno_url::op_url_parse_search_params;
use deno_url::op_url_stringify_search_params;

pub fn init(rt: &mut deno_core::JsRuntime) {
  super::reg_json_sync(rt, "op_url_parse", op_url_parse);
  super::reg_json_sync(
    rt,
    "op_url_parse_search_params",
    op_url_parse_search_params,
  );
  super::reg_json_sync(
    rt,
    "op_url_stringify_search_params",
    op_url_stringify_search_params,
  );
}