Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 353 Bytes
package co.freeside.betamax.handler
import co.freeside.betamax.message.*
import co.freeside.betamax.message.filtering.*
class HeaderFilter extends ChainedHttpHandler {
Response handle(Request request) {
def filteredRequest = new HeaderFilteringRequest(request)
def response = chain(filteredRequest)
new HeaderFilteringResponse(response)
}
}