Fetch.cs 383 B

123456789101112
  1. using Bridge;
  2. namespace FetchTypeDefine
  3. {
  4. [External, Convention(Member = ConventionMember.All, Notation = Notation.CamelCase)]
  5. public sealed class Fetch : PromiseTypeDefine<FetchResponse>
  6. {
  7. [Template("window.fetch({0})")] public extern Fetch(string url);
  8. [Template("window.fetch({0},{1})")] public extern Fetch(string url, FetchParams param);
  9. }
  10. }