I would be surprised if there were any performance differences (unless
you configured the client differently), since the only difference is
whether you're using a global client that you created or one that the
http package created.
Andy
On 11/30/20 9:58 AM, jun min wrote:
I'm make a simple ht
I'm make a simple http request with immutable header, immutable request
timeout
Which is prefered when writing a program with http client
1. request concurrently with a global http client
2. request concurrently with `http.DefaultClient.Do(req)`
They seems both cache and reuse http connection.
I made it work with status web site in the folder "www":
---
package main
import (
"embed"
"log"
"net/http"
)
//go:embed www
var src embed.FS
func main() {
// http://localhost:8080/www/
filehandler := http.FileServer(http.FS(src))
http.Handle("/", http.StripPrefix("/", filehandler))
// Run the
Thank you for sharing your experience!
On Sunday, November 29, 2020 at 6:38:56 AM UTC-8 peterGo wrote:
> On Saturday, November 28, 2020 at 3:59:21 PM UTC-5 Constantine Vassilev
> wrote:
>
>> I generated it from the source. I that the version I need?
>>
>> go version devel +4ce0a7cea6 Sat Nov 28
On Sunday, 29 November 2020 at 22:09:24 UTC+1 Jeroen N. Witmond wrote:
>
> In trying to find out how to do this I came across (closed)
> https://github.com/golang/go/issues/19900 As a result I found another way
> to invoke it: go run `locate generate_cert.go` host 127.0.0.1
> --rsa-bits=2048