RunUnix attaches to a http.Server and starts listening and serving HTTP requests through the specified unix socket (i.e. a file) Note: this method will block the calling goroutine indefinitely unless an error happens.
(file string)
| 148 | // through the specified unix socket (i.e. a file) |
| 149 | // Note: this method will block the calling goroutine indefinitely unless an error happens. |
| 150 | func RunUnix(file string) (err error) { |
| 151 | return engine().RunUnix(file) |
| 152 | } |
| 153 | |
| 154 | // RunFd attaches the router to a http.Server and starts listening and serving HTTP requests |
| 155 | // through the specified file descriptor. |