Documentation
¶
Index ¶
- Constants
- func GetHttpConnectionForUrl(url string) (*manifest.HTTPConnectionInfo, error)
- func GetHttpConnectionInfo(name string) (*manifest.HTTPConnectionInfo, error)
- func PostToConnectionEndpoint[TResult any](ctx context.Context, connection *manifest.HTTPConnectionInfo, payload any) (*utils.HttpResult[TResult], error)
- type HttpHeader
- type HttpHeaders
- type HttpRequest
- type HttpResponse
Constants ¶
View Source
const HypermodeConnectionName string = "hypermode"
Variables ¶
This section is empty.
Functions ¶
func GetHttpConnectionForUrl ¶
func GetHttpConnectionForUrl(url string) (*manifest.HTTPConnectionInfo, error)
func GetHttpConnectionInfo ¶
func GetHttpConnectionInfo(name string) (*manifest.HTTPConnectionInfo, error)
func PostToConnectionEndpoint ¶
func PostToConnectionEndpoint[TResult any](ctx context.Context, connection *manifest.HTTPConnectionInfo, payload any) (*utils.HttpResult[TResult], error)
Types ¶
type HttpHeader ¶
type HttpHeaders ¶
type HttpHeaders struct {
Data map[string]*HttpHeader
}
type HttpRequest ¶
type HttpRequest struct { Url string Method string Headers *HttpHeaders Body []byte }
type HttpResponse ¶
type HttpResponse struct { Status uint16 StatusText string Headers *HttpHeaders Body []byte }
func Fetch ¶
func Fetch(ctx context.Context, request *HttpRequest) (*HttpResponse, error)
Click to show internal directories.
Click to hide internal directories.