mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
h1
This commit is contained in:
parent
e7fcc33597
commit
eece058f18
@ -1,4 +1,5 @@
|
||||
import net.urllib
|
||||
import http
|
||||
|
||||
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() {
|
||||
C.SSL_library_init()
|
||||
C.SSL_load_error_strings()
|
||||
C.OPENSSL_config(0)
|
||||
//C.SSL_load_error_strings()
|
||||
//C.OPENSSL_config(0)
|
||||
}
|
||||
|
||||
fn ssl_do(method, host_name, path string) string {
|
||||
|
Loading…
Reference in New Issue
Block a user