🔀 Merge branch 'release/0.0.1' into stable
This commit is contained in:
		
				commit
				
					
						620da470ac
					
				
			
		
					 4 changed files with 25 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								go.mod
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								go.mod
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| module codeberg.org/danjones000/idiohandler | ||||
| 
 | ||||
| go 1.21.12 | ||||
							
								
								
									
										9
									
								
								handler.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								handler.go
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| package idiohandler | ||||
| 
 | ||||
| import "net/http" | ||||
| 
 | ||||
| type Handler func(*http.Request) (Responder, error) | ||||
| 
 | ||||
| func (h Handler) ServeHttp(w http.ResponseWriter, r *http.Request) { | ||||
| 	// @todo implement | ||||
| } | ||||
							
								
								
									
										1
									
								
								handler_test.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								handler_test.go
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| package idiohandler | ||||
							
								
								
									
										12
									
								
								responder.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								responder.go
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| package idiohandler | ||||
| 
 | ||||
| import ( | ||||
| 	"io" | ||||
| 	"net/http" | ||||
| ) | ||||
| 
 | ||||
| type Responder interface { | ||||
| 	ResponseBody() io.Reader | ||||
| 	Status() int | ||||
| 	Header() http.Header | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue