{"modulePath":"github.com/pushchain/push-chain-node","version":"v0.0.49","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package web2\n\nPackage web2 executes web2 (HTTP) read requests: it fetches the declared endpoint, extracts the declared JSON fields, and canonically encodes them so read results are byte-identical across validators.\n\n## Constants\n\n```go\nconst (\n\t// DestinationPrefix identifies web2 read destinations, e.g. \"web2:https\".\n\tDestinationPrefix = \"web2:\"\n)\n```\n\n## Types\n\n```go\ntype Executor struct {\n\t// contains filtered or unexported fields\n}\n```\nExecutor implements common.ReadRequestHandler for web2 destinations.\n\n```go\nfunc NewExecutor(logger zerolog.Logger) *Executor\n```\nNewExecutor creates a web2 read executor. Its HTTP client dials through an SSRF guard that blocks private/internal addresses on the initial request and on every redirect hop, and only connects to the exact IP it vetted (so DNS rebinding cannot swap in an internal address between check and dial).\n\n```go\nfunc (e *Executor) ExecuteRead(ctx context.Context, req *ucallbacktypes.ReadRequest) (*ucallbacktypes.ReadResult, error)\n```\nExecuteRead fetches the endpoint declared in the envelope, extracts the declared fields, and abi-encodes them in extract order. Deterministic failures (bad envelope, non-JSON response, missing path, 4xx) are votable ERROR observations; transport failures and 5xx are transient errors.\n\n","path":"github.com/pushchain/push-chain-node/universalClient/externalchains/web2","name":"web2","synopsis":"Package web2 executes web2 (HTTP) read requests: it fetches the declared endpoint, extracts the declared JSON fields, and canonically encodes them so read results are byte-identical across validators.","isRedistributable":true}
