Skip to content

Commit

Permalink
Merge pull request #25 from LUSHDigital/feature/responder-interface
Browse files Browse the repository at this point in the history
Adds WriteTo to the responder interface
  • Loading branch information
ladydascalie authored Jun 19, 2018
2 parents 740d883 + ab59813 commit ed4ae3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions response/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ type Responder interface {

// GetCode returns the response code.
GetCode() int

// WriteTo writes back to the network connection.
WriteTo(w http.ResponseWriter) error
}

// Response - A standardised response format for a microservice.
Expand Down

0 comments on commit ed4ae3d

Please sign in to comment.