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
- type ConcurrentBuffer
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 ¶
type ConcurrentBuffer ¶ added in v0.0.73
type ConcurrentBuffer struct {
// contains filtered or unexported fields
}
func NewConcurrentBuffer ¶ added in v0.0.73
func NewConcurrentBuffer(t *testing.T) *ConcurrentBuffer
func (*ConcurrentBuffer) String ¶ added in v0.0.73
func (c *ConcurrentBuffer) String() string
Click to show internal directories.
Click to hide internal directories.