R
R
recloudor2016-07-11 15:54:30
go
recloudor, 2016-07-11 15:54:30

go. How to set ReadTimeout in martini?

How to set such values ​​​​on martini at startup?

s := &http.Server{Addr: ":8080",
    ReadTimeout:  10 * time.Second,
    WriteTimeout: 10 * time.Second,
  }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey K, 2016-07-11
@recloudor

Martini is no longer being developed, please use another framework.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question