1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-16 03:44:26 +00:00
Commit graph

9 commits

Author SHA1 Message Date
diamondburned 99e5f6c2b8
httpdriver: Fix MockRequest.AddHeader crash 2022-12-09 15:39:33 -08:00
diamondburned b3b2478481
httpdriver: ExpectMockRequest should return error instead 2022-12-08 19:48:57 -08:00
diamondburned ea4beab6bd
httpdriver: Fix MockResponse not impl'ing Response 2022-12-08 19:42:22 -08:00
diamondburned bf75621068
httpdriver: Add ExpectMockRequest
This commit adds the httpdriver.ExpectMockRequest function, which will
be super useful for testing inside and outside the library.
2022-12-08 19:38:59 -08:00
diamondburned 3bb8c2b019
httpdriver: Add Method into MockRequest 2022-12-08 19:17:28 -08:00
diamondburned d4bfd69cf6
httpdriver: Add Mock{Request,Response}
This commit adds MockRequest and MockResponse to aid in testing.

It doesn't provide a MockClient, since there are multiple testing
strategies and we don't want to do them all.
2022-12-08 17:16:11 -08:00
diamondburned 05948ac1ec
httputil: Fix incorrect Content-Type header 2022-04-02 22:34:41 -07:00
diamondburned (Forefront) a0bccd9c35 API: Added WithContext API, closes #15 2020-05-03 14:02:03 -07:00
diamondburned (Forefront) 2afe683b7d Utils: Added HTTP drivers 2020-04-19 14:53:53 -07:00