http: make do() public

pull/1155/head
Alexander Medvednikov 2019-07-15 16:06:23 +02:00
parent d8df8474bc
commit 5a9116b697
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ fn write_fn(contents byteptr, size, nmemb int, _mem *MemoryStruct) int {
struct C.curl_slist { }
fn (req &Request) do() Response {
pub fn (req &Request) do() Response {
//println('req.do() mac/linux url="$req.url" data="$req.data"')
// println('req.do() url="$req.url"')
/*

View File

@ -20,7 +20,7 @@ import const (
INTERNET_SERVICE_HTTP
)
fn (req &Request) do() Response {
pub fn (req &Request) do() Response {
emptyresp := Response{}
mut url := req.url
//println('\n\nhttp.do() WIN URL="$url" TYP=$req.typ data="$req.data" headers.len=req.headers.len"')