In general these frameworks provide functionality that covers one or more of the following:
- Routing: A mechanism for taking HTTP requests and routing them to some code that handles them and returns a response.
| package fakeresponse | |
| import ( | |
| "testing" | |
| "net/http" | |
| ) | |
| type FakeResponse struct { | |
| t *testing.T | |
| headers http.Header |
| """ | |
| BEGIN GPL LICENSE BLOCK | |
| (c) Dealga McArdle 2012 / blenderscripting.blogspot / digitalaphasia.com | |
| This program is free software; you may redistribute it, and/or | |
| modify it, under the terms of the GNU General Public License | |
| as published by the Free Software Foundation - either version 2 | |
| of the License, or (at your option) any later version. |