Skip to content

Commit 2f56d8d

Browse files
author
Sabbir Ahmed
authored
Merge pull request #1072 from raihaninfo/gin
added gin Custom HTTP configuration.
2 parents 7f8f3ad + dc41bff commit 2f56d8d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

data/gin-gonic.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
{
4343
"definition": "যেকোন পোর্টে সার্ভার রান করা",
4444
"code": "router.Run(\":3000\") // 3000 পোর্টে সার্ভার রান করা"
45+
},
46+
{
47+
"definition": "কাস্টম HTTP কনফিগারেশন",
48+
"code": "s := &http.Server{\n\tAddr: \":8080\",\n\tHandler: router,\n\tReadTimeout: 10 * time.Second,\n\tWriteTimeout: 10 * time.Second,\n\tMaxHeaderBytes: 1 << 20,\n}\ns.ListenAndServe()"
4549
}
4650
]
4751
},

0 commit comments

Comments
 (0)