Documentation ¶
Index ¶
- func Delete(s *http.Server, url string, opts ...requestOption) *httptest.ResponseRecorder
- func DeleteJson[T any](s *http.Server, url string, opts ...requestOption) (*httptest.ResponseRecorder, T)
- func GetJson[T any](s *http.Server, url string, opts ...requestOption) (*httptest.ResponseRecorder, T)
- func PatchJson[T any](s *http.Server, url string, jsonStr string, opts ...requestOption) (*httptest.ResponseRecorder, T)
- func PostJson[T any](s *http.Server, url string, jsonStr string, opts ...requestOption) (*httptest.ResponseRecorder, T)
- func PutJson[T any](s *http.Server, url string, jsonStr string, opts ...requestOption) (*httptest.ResponseRecorder, T)
- func WithHeader(key, value string) requestOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(s *http.Server, url string, opts ...requestOption) *httptest.ResponseRecorder
func DeleteJson ¶
func WithHeader ¶ added in v0.0.61
func WithHeader(key, value string) requestOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.