pull/1487/head^2
parent
e7fcc33597
commit
eece058f18
|
@ -1,4 +1,5 @@
|
||||||
import net.urllib
|
import net.urllib
|
||||||
|
import http
|
||||||
|
|
||||||
fn test_escape_unescape() {
|
fn test_escape_unescape() {
|
||||||
/*
|
/*
|
||||||
|
@ -10,3 +11,8 @@ fn test_escape_unescape() {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn test_http_get() {
|
||||||
|
assert http.get_text('https://vlang.io/version') == '0.1.5'
|
||||||
|
println('http ok')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,14 @@ struct C.SSL {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn init_module() {
|
||||||
|
init_openssl()
|
||||||
|
}
|
||||||
|
|
||||||
fn init_openssl() {
|
fn init_openssl() {
|
||||||
C.SSL_library_init()
|
C.SSL_library_init()
|
||||||
C.SSL_load_error_strings()
|
//C.SSL_load_error_strings()
|
||||||
C.OPENSSL_config(0)
|
//C.OPENSSL_config(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ssl_do(method, host_name, path string) string {
|
fn ssl_do(method, host_name, path string) string {
|
||||||
|
|
Loading…
Reference in New Issue