Acconut / go-httptest-recorder

A copy of Go's `net/http/httptest.ResponseRecorder` with support for 1XX responses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-httptest-recorder

This package is copy of Go's net/http/httptest.ResponseRecorder with support for recording 1XX responses, which is currently not supported in the standard library.

It is based on the great work from Kévin Dunglas, who proposed and implemented the new API. As of writing this, the proposal has not been accepted yet, which is why this package exists. It can be used until we have native support for this in the standard library. Thank you very much, Kévin!

Installation

go get github.com/Acconut/go-httptest-recorder

Documentation

https://pkg.go.dev/github.com/Acconut/go-httptest-recorder

About

A copy of Go's `net/http/httptest.ResponseRecorder` with support for 1XX responses

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%