Documentation
¶
Index ¶
- func Request(typeRequest RequestType, url string, data []byte) (*http.Response, error)
- func RequestWithContext(ctx context.Context, typeRequest RequestType, url string) (*http.Response, error)
- func RequestWithContextAndData(ctx context.Context, typeRequest RequestType, url string, data []byte) (*http.Response, error)
- func ResponseHandler(response *http.Response) (*dto.Response, error)
- func ResponseHandlerToType[TypeData any](response *http.Response) (*TypeData, error)
- type RequestType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestWithContext ¶
Types ¶
type RequestType ¶
type RequestType int
const ( Get RequestType = 1 << iota Post )
func (RequestType) String ¶
func (e RequestType) String() string
Click to show internal directories.
Click to hide internal directories.