adnano
0ad54cc7ab
Add unexported method to timeout writer
2021-02-24 08:34:26 -05:00
adnano
5126abe562
Move ResponseWriter Conn and TLS methods to Request
2021-02-24 08:24:49 -05:00
adnano
6741248fe4
Remove ResponseWriter.Hijack method
2021-02-24 08:22:12 -05:00
adnano
6a0151c60b
Implement TimeoutHandler by wrapping ResponseWriter
2021-02-24 08:18:23 -05:00
Kaleb Elwert
0431ad1d45
Only use fs.go when fs.FS is available
2021-02-24 07:41:53 -05:00
adnano
36a67255e0
Make ResponseWriter an interface
...
Make ResponseWriter an interface with an unexported method. Implementors
must embed a ResponseWriter from elsewhere. This gives us the
flexibility of an interface while allowing us to add new methods in the
future.
2021-02-24 00:13:46 -05:00
adnano
06dc7eed08
Remove ErrHandlerTimeout
2021-02-23 22:15:19 -05:00
adnano
2d5b0df001
Move TimeoutHandler to handler.go
2021-02-23 22:12:04 -05:00
adnano
5bb9ae237d
Unexport NewResponseWriter
2021-02-23 22:02:47 -05:00
adnano
29a2789434
Reimplement TimeoutHandler
2021-02-23 21:59:16 -05:00
adnano
b21522f6cb
response: Change field names
2021-02-23 21:51:42 -05:00
adnano
ea7415e9af
Add ResponseWriter.Hijack method
2021-02-23 21:36:29 -05:00
adnano
d3856730ab
ResponseWriter: Add TLS and Conn methods
2021-02-23 20:59:04 -05:00
adnano
c27c934ec1
request: Remove TLS and Conn methods
2021-02-23 20:57:53 -05:00
adnano
5641fb7415
Move I/O utilities to io.go
2021-02-23 20:49:55 -05:00
adnano
06d65b8154
Make ResponseWriter a struct
...
Make ResponseWriter a struct again so that it can be extended in a
backwards-compatible way.
2021-02-23 20:41:16 -05:00
adnano
feb0535483
handler: Mention when the context is canceled
2021-02-23 19:01:12 -05:00
adnano
f8c7820d0f
handler: Mention ResponseWriter.Close method
2021-02-23 18:59:20 -05:00
adnano
3e8cd2465e
client: Clarify usage of contexts
2021-02-23 18:56:18 -05:00
adnano
6e16497812
Use HandlerFunc to implement StatusHandler
2021-02-23 18:52:00 -05:00
adnano
4d7bb87110
Update documentation
2021-02-23 18:45:58 -05:00
adnano
4864d2ad67
Update documentation
2021-02-23 17:52:47 -05:00
adnano
81803e8a44
Update examples/client.go
2021-02-23 17:52:34 -05:00
adnano
8b7bd5b2d7
Make Response an io.ReadCloser
2021-02-23 17:50:47 -05:00
adnano
6d49b91ab7
response: Add Close method
2021-02-23 17:32:23 -05:00
adnano
45ba4cc219
request: Fix documentation for TLS
2021-02-23 17:30:46 -05:00
adnano
45e432a71b
request: Add Conn and TLS methods
2021-02-23 17:29:50 -05:00
adnano
b2bbb83827
response: Add Conn and TLS methods
2021-02-23 16:36:17 -05:00
adnano
c0544f3038
server: Cancel context on IO errors
2021-02-23 16:06:57 -05:00
adnano
c791262bff
client: Move context handling to do
2021-02-23 16:01:29 -05:00
adnano
e31b8d0244
examples/client: Stream response body
2021-02-23 15:56:44 -05:00
adnano
0a4b302a13
client: Cancel context on IO errors
...
Also close the connection when the context expires.
2021-02-23 15:52:47 -05:00
adnano
36c5bbaebe
examples/stream: Simplify
2021-02-23 15:31:41 -05:00
adnano
98de802b3a
timeout: Don't recover from panics
2021-02-23 15:30:44 -05:00
adnano
a0d03c9088
response: Remove TLS field
2021-02-23 15:29:27 -05:00
adnano
440a6c6a0f
Update documentation
2021-02-23 14:29:37 -05:00
adnano
ded8cc0508
client: Use present tense in documentation
2021-02-23 12:21:05 -05:00
adnano
ce3202dc42
server: Document use of context in ListenAndServe
2021-02-23 12:10:55 -05:00
adnano
4d2adf4bd0
server: Make ErrorLog an interface
2021-02-23 11:10:35 -05:00
adnano
dfc7a8b3cf
ServeMux.HandleFunc: Take a HandlerFunc argument
2021-02-23 09:49:20 -05:00
adnano
72d53dfff1
server: Fix Shutdown with no active listeners
...
Shutdown and Close will hang if there are no active listeners or
connections. Try to close the done channel to avoid that.
2021-02-23 09:28:14 -05:00
adnano
77f7bc7f58
tofu: Update documentation
2021-02-23 09:21:21 -05:00
adnano
5b99c94075
text: Update documentation
2021-02-23 09:18:34 -05:00
adnano
5561898c6c
certificate.Store: Mention GetCertificate usage
2021-02-23 09:10:22 -05:00
adnano
b8ddf79438
server: Mention certificate store
2021-02-23 09:08:44 -05:00
adnano
685614304b
certificate: Update documentation
2021-02-23 09:05:45 -05:00
adnano
2e15b28224
certificate.Store: Update documentation
2021-02-23 09:03:38 -05:00
adnano
9cf950f7c0
certificate.Store: Check '*' scope last
2021-02-23 08:52:12 -05:00
adnano
67c25087da
certificate.Store: Allow certificate of scope '*'
2021-02-23 08:46:43 -05:00
adnano
c9479c10ed
Update examples
2021-02-23 08:43:47 -05:00