Matthew Holt
baf6db5b57
Apply Apache license to all .go source files ( closes #1865 )
...
I am not a lawyer, but according to the appendix of the license,
these boilerplate notices should be included with every source file.
2017-09-22 23:56:58 -06:00
Adam Williams
b6e10e3cb2
Revert "Implement Caddy-Sponsors HTTP response header" ( #1866 )
...
This reverts commit 56453e9664
.
2017-09-14 21:42:22 -06:00
Matthew Holt
56453e9664
Implement Caddy-Sponsors HTTP response header
...
(See EULA.) Personally-licensed official Caddy builds cannot remove
this header by configuration. The commercially-licensed builds of Caddy
don't have this header.
2017-09-10 19:51:57 -06:00
Tw
8e7a36de45
ResponseWriterWrapper and HTTPInterfaces ( #1644 )
...
Signed-off-by: Tw <tw19881113@gmail.com>
2017-05-05 09:42:06 -06:00
Tw
0146bb4e49
proxy: recognize client's cancellation
...
fix issue #1589
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-30 10:14:19 +08:00
Mateusz Gajewski
cdf7cf5c3f
HTTP/2 push support (golang 1.8) ( #1215 )
...
* WIP
* HTTP2/Push for golang 1.8
* Push plugin completed for review
* Correct build tag
* Move push plugin position
* Add build tags to tests
* Gofmt that code
* Add header/method validations
* Load push plugin
* Fixes for wrapping writers
* Push after delivering file
* Fixes, review changes
* Remove build tags, support new syntax
* Fix spelling
* gofmt -s -w .
* Gogland time
* Add interface guards
* gofmt
* After review fixes
2017-02-17 09:25:22 -07:00
Mateusz Gajewski
63f749112b
Use http.Header instead of custom type ( #1214 )
...
* Use http.Header
* This initialization was just stupid
2016-11-03 12:24:26 -06:00
Matthew Holt
14500d8204
header: Implement Flusher and CloseNotifier
2016-11-02 08:13:58 -06:00
Tw
a2900e46f4
header: only register deletion operation ( #1212 )
...
fix issue #1183
Signed-off-by: Tw <tw19881113@gmail.com>
2016-11-01 22:08:02 -06:00
Tw
d0455c7b9c
add more descriptive errors
...
Signed-off-by: Tw <tw19881113@gmail.com>
2016-10-11 10:34:51 +08:00
Tw
e5d33e73f3
header: implement http.Hijacker for responseWriterWrapper
...
fix issue #1173
Signed-off-by: Tw <tw19881113@gmail.com>
2016-10-11 08:53:47 +08:00
Tw
d0ddfc849d
header: defer header operations
...
fix issue #1131
Signed-off-by: Tw <tw19881113@gmail.com>
2016-09-27 15:35:13 +08:00
Garrett Squire
e7c842215e
Allow multiple values for an HTTP header and
...
add a test to ensure this works.
2016-07-20 22:17:13 -07:00
Matthew Holt
416af05a00
Migrating more middleware packages
2016-06-05 21:51:56 -06:00