Skip to content

Commit

Permalink
Merge pull request #1072 from raihaninfo/gin
Browse files Browse the repository at this point in the history
added gin Custom HTTP configuration.
  • Loading branch information
Sabbir Ahmed authored Oct 31, 2023
2 parents 7f8f3ad + dc41bff commit 2f56d8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/gin-gonic.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
{
"definition": "যেকোন পোর্টে সার্ভার রান করা",
"code": "router.Run(\":3000\") // 3000 পোর্টে সার্ভার রান করা"
},
{
"definition": "কাস্টম HTTP কনফিগারেশন",
"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()"
}
]
},
Expand Down

0 comments on commit 2f56d8d

Please sign in to comment.