Discover Packages
github.com/ChainSafe/gossamer
lib
runtime
offchain
package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Mar 1, 2024
License: LGPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
HTTPSet holds a pool of concurrent http request calls
NewHTTPSet creates a offchain http set that can be used
by runtime as HTTP clients, the max concurrent requests is 1000
Get returns a request or nil if request not found
Remove just remove a expecific request from reqs
StartRequest create a new request using the method and the uri, adds the request into the list
and then return the position of the request inside the list
Request holds the request object and update the invalid and waiting status whenever
the request starts or is waiting to be read
AddHeader adds a new HTTP header into request property, only if request is valid
Source Files
¶
Click to show internal directories.
Click to hide internal directories.