request path, query, header, request body, etc Response • parse of response body They are common to all API clients, so letʼs do them at the framework 7
the HTTP server with them, but we canʼt test the request parameters with them • I used gock, but it is inconvenient that we canʼt understand why the request matches no mock 9
the HTTP server with them, but we canʼt test the request parameters with them • I used gock, but it is inconvenient that we canʼt understand why the request matches no mock I canʼt find the library meets my needs completely, so I decided to develop it by myself 10
HTTP client testing framework for Golang • With flute we can not only mock the API server but also test the request parameters • With flute we can define the tests declaratively • In Go, we can mock the HTTP server easily with http.RoundTripper 23