{"modulePath":"github.com/GoPlugin/pluginV2","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package http\n\n## Variables\n\n```go\nvar ErrDisallowedIP = errors.New(\"disallowed IP\")\n```\n\n## Functions\n\n```go\nfunc NewRestrictedHTTPClient(cfg httpClientConfig, lggr logger.Logger) *http.Client\n```\nNewRestrictedHTTPClient returns a secure HTTP Client (queries to certain local addresses are blocked)\n\n```go\nfunc NewUnrestrictedHTTPClient() *http.Client\n```\nNewUnrestrictedClient returns a HTTP Client with no Transport restrictions\n\n## Types\n\n```go\ntype HTTPRequest struct {\n\tClient  *http.Client\n\tRequest *http.Request\n\tConfig  HTTPRequestConfig\n\tLogger  logger.Logger\n}\n```\nHTTPRequest holds the request and config struct for a http request\n\n```go\nfunc (h *HTTPRequest) SendRequest() (responseBody []byte, statusCode int, headers http.Header, err error)\n```\nSendRequest sends a HTTPRequest, returns a body, status code, and error.\n\n```go\ntype HTTPRequestConfig struct {\n\tSizeLimit int64\n}\n```\nHTTPRequestConfig holds the configurable settings for a http request\n\n","path":"github.com/GoPlugin/pluginV2/core/utils/http","name":"http","synopsis":"","isRedistributable":true}
