feat: add cJSON and SQLite amalgamation source files under deps/
Add the cJSON library (cJSON.c, cJSON.h) and SQLite amalgamation (sqlite3.c, sqlite3.h, sqlite3ext.h, shell.c) as vendored dependencies in the deps/ directory for use by the project build system.
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
import "http" for Url, Http, HttpResponse
|
||||
|
||||
var url1 = Url.parse("http://example.com/path")
|
||||
System.print(url1.scheme) // expect: http
|
||||
System.print(url1.host) // expect: example.com
|
||||
System.print(url1.port) // expect: 80
|
||||
System.print(url1.path) // expect: /path
|
||||
|
||||
var url2 = Url.parse("http://example.com:8080/test?foo=bar")
|
||||
System.print(url2.port) // expect: 8080
|
||||
System.print(url2.path) // expect: /test
|
||||
System.print(url2.query) // expect: foo=bar
|
||||
System.print(url2.fullPath) // expect: /test?foo=bar
|
||||
|
||||
var url3 = Url.parse("http://localhost/")
|
||||
System.print(url3.host) // expect: localhost
|
||||
System.print(url3.path) // expect: /
|
||||
Reference in New Issue
Block a user