Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							1115158616 
							
						 
					 
					
						
						
							
							caddyhttp: ResponseRecorder sets stream regardless of 1xx  
						
						... 
						
						
						
						Fixes a panic where rr.stream is not true when it should be in the event of 1xx, because the buf is nil 
						
						
					 
					
						2025-01-27 08:18:37 -07:00 
						 
				 
			
				
					
						
							
							
								WeidiDeng 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f3aead0e4d 
							
						 
					 
					
						
						
							
							http: ReponseWriter prefer ReadFrom if available ( #6565 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.22.3, windows-latest, True, 1.22, windows) (push) Waiting to run 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.23.0, windows-latest, True, 1.23, windows) (push) Waiting to run 
				
			 
		
			
				
	Lint / lint (macos-14, mac) (push) Waiting to run 
				
			 
		
			
				
	Lint / lint (windows-latest, windows) (push) Waiting to run 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.22.3, ubuntu-latest, 0, 1.22, linux) (push) Failing after 1m38s 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.23.0, ubuntu-latest, 0, 1.23, linux) (push) Failing after 1m25s 
				
			 
		
			
				
	Tests / test (s390x on IBM Z) (push) Has been skipped 
				
			 
		
			
				
	Tests / goreleaser-check (push) Successful in 22s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, aix) (push) Successful in 1m41s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, darwin) (push) Successful in 1m38s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, dragonfly) (push) Successful in 1m32s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, freebsd) (push) Successful in 1m40s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, illumos) (push) Successful in 1m34s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, linux) (push) Successful in 1m37s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, netbsd) (push) Successful in 1m35s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, openbsd) (push) Successful in 1m39s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, solaris) (push) Successful in 1m32s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, windows) (push) Successful in 1m31s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, aix) (push) Successful in 1m26s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, darwin) (push) Successful in 1m23s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, dragonfly) (push) Successful in 1m23s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, freebsd) (push) Successful in 1m27s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, illumos) (push) Successful in 1m25s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, linux) (push) Successful in 1m24s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, netbsd) (push) Successful in 1m29s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, openbsd) (push) Successful in 1m25s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, solaris) (push) Successful in 1m23s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, windows) (push) Successful in 1m25s 
				
			 
		
			
				
	Lint / lint (ubuntu-latest, linux) (push) Successful in 2m1s 
				
			 
		
			
				
	Lint / govulncheck (push) Successful in 1m15s 
				
			 
		
		
	 
 
	 
						
						Co-authored-by: Matt Holt <mholt@users.noreply.github.com> 
						
						
					 
					
						2024-10-01 11:19:03 -06:00 
						 
				 
			
				
					
						
							
							
								Andreas Kohn 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9be4f194e0 
							
						 
					 
					
						
						
							
							caddyhttp: Write header if needed in responseRecorder.WriteResponse ( #6380 )  
						
						
						
						
					 
					
						2024-06-07 07:25:36 -06:00 
						 
				 
			
				
					
						
							
							
								WeidiDeng 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1b9042bcdd 
							
						 
					 
					
						
						
							
							reverseproxy: handle buffered data during hijack ( #6274 )  
						
						
						
						
					 
					
						2024-04-26 09:09:18 -06:00 
						 
				 
			
				
					
						
							
							
								WeidiDeng 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e0daa39cd3 
							
						 
					 
					
						
						
							
							caddyhttp: record num. bytes read when response writer is hijacked ( #6173 )  
						
						... 
						
						
						
						* record the number of bytes read when response writer is hijacked
* record body size when not nil 
						
						
					 
					
						2024-04-17 15:00:37 +00:00 
						 
				 
			
				
					
						
							
							
								WeidiDeng 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c93e30454f 
							
						 
					 
					
						
						
							
							caddyhttp: suppress flushing if the response is being buffered ( #6150 )  
						
						... 
						
						
						
						* suppress flushing if the response is being buffered
* fix lint
---------
Co-authored-by: Matt Holt <mholt@users.noreply.github.com> 
						
						
					 
					
						2024-03-11 20:03:20 +00:00 
						 
				 
			
				
					
						
							
							
								Francis Lavoie 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							cd486c25d1 
							
						 
					 
					
						
						
							
							caddyhttp: Make use of http.ResponseController ( #5654 )  
						
						... 
						
						
						
						* caddyhttp: Make use of http.ResponseController
Also syncs the reverseproxy implementation with stdlib's which now uses ResponseController as well 2449bbb5e6 
						
						
					 
					
						2023-08-02 20:03:26 +00:00 
						 
				 
			
				
					
						
							
							
								Kévin Dunglas 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1c9ea0113d 
							
						 
					 
					
						
						
							
							caddyhttp: Impl ResponseWriter.Unwrap(), prep for Go 1.20's ResponseController ( #5509 )  
						
						... 
						
						
						
						* feat: add support for ResponseWriter.Unwrap()
* cherry-pick Francis' code 
						
						
					 
					
						2023-04-26 19:44:01 -04:00 
						 
				 
			
				
					
						
							
							
								WeidiDeng 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c77a6bea66 
							
						 
					 
					
						
						
							
							reverseproxy: Log status code and byte count for websockets ( #5140 )  
						
						... 
						
						
						
						* log response size for websocket request
* record size when using hijack bufio.Writer 
						
						
					 
					
						2023-02-06 16:14:59 -07:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							9206e8a738 
							
						 
					 
					
						
						
							
							Tweak some comments  
						
						
						
						
					 
					
						2022-09-21 12:59:44 -06:00 
						 
				 
			
				
					
						
							
							
								WeidiDeng 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c7a6bc5934 
							
						 
					 
					
						
						
							
							caddyhttp: responseRecorder save status in all cases ( #5049 )  
						
						
						
						
					 
					
						2022-09-17 18:47:53 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							00beec2e34 
							
						 
					 
					
						
						
							
							caddyhttp: Fix write header on responseRecorder  
						
						
						
						
					 
					
						2022-09-17 11:28:13 -06:00 
						 
				 
			
				
					
						
							
							
								fleandro 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dd9813c65b 
							
						 
					 
					
						
						
							
							caddyhttp: ensure ResponseWriterWrapper and ResponseRecorder use ReadFrom if the underlying response writer implements it. ( #5022 )  
						
						... 
						
						
						
						Doing so allows for splice/sendfile optimizations when available.
Fixes  #4731 
Co-authored-by: flga <flga@users.noreply.github.com>
Co-authored-by: Matthew Holt <mholt@users.noreply.github.com> 
						
						
					 
					
						2022-09-07 21:13:35 +01:00 
						 
				 
			
				
					
						
							
							
								Matt Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ca4fae64d9 
							
						 
					 
					
						
						
							
							caddyhttp: Support respond with HTTP 103 Early Hints ( #5006 )  
						
						... 
						
						
						
						* caddyhttp: Support sending HTTP 103 Early Hints
This adds support for early hints in the static_response handler.
* caddyhttp: Don't record 1xx responses 
						
						
					 
					
						2022-09-05 13:50:44 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							026937fab5 
							
						 
					 
					
						
						
							
							caddyhttp: Fix trailers when recording responses ( fixes   #3236 )  
						
						
						
						
					 
					
						2020-04-22 11:10:13 -06:00 
						 
				 
			
				
					
						
							
							
								Mohammed Al Sahaf 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7dfd69cdc5 
							
						 
					 
					
						
						
							
							chore: make the linter happier ( #3245 )  
						
						... 
						
						
						
						* chore: make the linter happier
* chore: remove reference to maligned linter in .golangci.yml 
						
						
					 
					
						2020-04-08 15:31:51 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8bae8f5f5a 
							
						 
					 
					
						
						
							
							http: Always set status code via response recorder  
						
						... 
						
						
						
						Fixes panic if no upstream handler wrote anything to the response 
						
						
					 
					
						2020-01-08 18:37:41 -07:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							af26a03da1 
							
						 
					 
					
						
						
							
							http: Only enable access logs if configured  
						
						
						
						
					 
					
						2019-11-15 17:01:07 -07:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							abf5ab340e 
							
						 
					 
					
						
						
							
							caddyhttp: Improve ResponseRecorder to buffer headers  
						
						
						
						
					 
					
						2019-10-15 14:07:10 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5300949e0d 
							
						 
					 
					
						
						
							
							caddyhttp: Make responseRecorder capable of counting body size  
						
						
						
						
					 
					
						2019-10-10 15:36:28 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							3177ee8010 
							
						 
					 
					
						
						
							
							Add license  
						
						
						
						
					 
					
						2019-06-30 16:07:58 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							d49f762f6d 
							
						 
					 
					
						
						
							
							Various bug fixes and minor improvements  
						
						... 
						
						
						
						- Fix static responder so it doesn't replace its own headers config,
  and instead replaces the actual response header values
- caddyhttp.ResponseRecorder type optionally buffers response
- Add interface guards to ensure regexp matchers get provisioned
- Use default HTTP port if one is not explicitly set
- Encode middleware writes status code 200 if not written upstream
- Templates and markdown only try to execute on text responses
- Static file server sets Content-Type based on file extension only
  (this whole thing -- MIME sniffing, etc -- needs more configurability) 
						
						
					 
					
						2019-06-21 14:36:26 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							1c443beb9c 
							
						 
					 
					
						
						
							
							caddyhttp: ResponseRecorder type for middlewares to buffer responses  
						
						... 
						
						
						
						Unfortunately, templates and markdown require buffering the full
response before it can be processed and written to the client 
						
						
					 
					
						2019-06-20 21:49:45 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							5137859e47 
							
						 
					 
					
						
						
							
							Rename caddy2 -> caddy  
						
						... 
						
						
						
						Removes the version from the package name 
						
						
					 
					
						2019-06-14 11:58:28 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							8ae0d6a509 
							
						 
					 
					
						
						
							
							caddyhttp: Implement better HTTP matchers including regexp; add tests  
						
						
						
						
					 
					
						2019-05-10 21:07:02 -06:00 
						 
				 
			
				
					
						
							
							
								Matt Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							f976aa7443 
							
						 
					 
					
						
						
							
							Merged in deadlines (pull request  #1 )  
						
						... 
						
						
						
						Cleanly fake-close listeners
* WIP debugging listener deadlines
* Fix listener deadlines 
						
						
					 
					
						2019-04-02 20:58:24 +00:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							6621406fa8 
							
						 
					 
					
						
						
							
							Very basic middleware and route matching functionality  
						
						
						
						
					 
					
						2019-03-31 20:41:29 -06:00