We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 374764d commit 497a5b8Copy full SHA for 497a5b8
source/http/http.ts
@@ -0,0 +1,28 @@
1
+namespace $ {
2
+ export class $mol_source_http_json extends $mol_source {
3
+
4
+ query() {
5
+ return {}
6
+ }
7
8
+ base() {
9
+ return ''
10
11
12
+ @ $mol_mem
13
+ uri() {
14
+ let url = this.base()
15
16
+ const search = '' + new URLSearchParams( this.query() )
17
+ if( search ) url += ( url.includes( '?' ) ? '&' : '?' ) + search
18
19
+ return url
20
21
22
23
+ output() {
24
+ return this.$.$mol_fetch.json( this.uri() )
25
26
27
28
+}
source/source.ts
@@ -0,0 +1,9 @@
+ export class $mol_source extends $mol_object2 {
+ return null as any
0 commit comments