resp, err := http.DefaultClient.Do(req) if err != nil { return err } defer resp.Body.Close() HTTPã¬ã¹ãã³ã¹ãåãåã£ãã¨ããerr != nilã®ã¨ãresp.Bodyã¯å¸¸ã«énilã§ããï¼ãã¨ãBodyã0ãã¤ãã§ãã£ã¦ãï¼ããã®resp.Body ã Close ããã®ã¯å¼ã³åºãå´ã®è²¬åã§ãããBody.Close ãæ ãã¨ãKeep-Alive(ããã©ã«ãã§æå¹)ã®ããã«TCPã³ãã¯ã·ã§ã³ãåå©ç¨ãããªããâ¦ã¨ãããã¨ã ããã¥ã¡ã³ãã«å£ãé ¸ã£ã±ããã¦æ¸ãã¦ããã åä¸ãã¹ãã¸ã®ã³ãã¯ã·ã§ã³æ°ã¯ããã©ã«ãã§æ大2ã«å¶éããã¦ãã åä¸ãã¹ãã¸ã®ã³ãã¯ã·ã§ã³æ°ã¯http.DefaultMaxIdleConnsPerHostå®æ°ã«ããããã©ã«ãã§2ã«å¶éããã¦ããã // DefaultMa
{{#tags}}- {{label}}
{{/tags}}