Documentation
¶
Index ¶
- func ConvertBodyToFormEncoded(data map[string]string) error
- func PrepareRequestData(data map[string]string) error
- func Request(data map[string]string, opts ...Option) (map[string]string, error)
- func ResolveMethodAndURL(data map[string]string) error
- type Callback
- type Option
- type Req
- type Res
- type Result
- type TransportOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBodyToFormEncoded ¶ added in v0.20.0
ConvertBodyToFormEncoded converts body__ prefixed fields to form-encoded body
func PrepareRequestData ¶ added in v0.20.0
PrepareRequestData prepares all request data including method fields and body conversion
func ResolveMethodAndURL ¶ added in v0.20.0
ResolveMethodAndURL resolves HTTP method fields and updates the data map Converts method fields like "get", "post" to "method" and "url" fields
Types ¶
type Req ¶
type TransportOptions ¶
Click to show internal directories.
Click to hide internal directories.