mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: handle and print socket errors
This commit is contained in:

committed by
Alexander Medvednikov

parent
4f4ac45670
commit
a5ccc4673b
@ -16,7 +16,7 @@ fn C.new_tls_context() C.TlsContext
|
||||
|
||||
fn init() int { return 1 }
|
||||
|
||||
fn (req &Request) ssl_do(port int, method, host_name, path string) Response {
|
||||
fn (req &Request) ssl_do(port int, method, host_name, path string) ?Response {
|
||||
mut ctx := C.new_tls_context()
|
||||
C.vschannel_init(&ctx)
|
||||
|
||||
|
Reference in New Issue
Block a user