Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = func() udpClient.Config { cfg := udpClient.DefaultConfig cfg.Handler = func(w *responsewriter.ResponseWriter[*udpClient.Conn], r *pool.Message) { switch r.Code() { case codes.POST, codes.PUT, codes.GET, codes.DELETE: if err := w.SetResponse(codes.NotFound, message.TextPlain, nil); err != nil { cfg.Errors(fmt.Errorf("dtls client: cannot set response: %w", err)) } } } return cfg }()
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.