Documentation ¶
Overview ¶
package httpreqresp encapsulates eth2 beacon chain resp-resp into http
Index ¶
Constants ¶
View Source
const ( ResponseCodeHeader = "Reqresp-Response-Code" PeerIdHeader = "Reqresp-Peer-Id" TopicHeader = "Reqresp-Topic" )
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Do performs an http request against the http handler. NOTE: this is actually very similar to the http.RoundTripper interface... maybe we should investigate using that.
the following headers have meaning when passed in to the request:
REQRESP-PEER-ID - the peer id to target for the request REQRESP-TOPIC - the topic to request with REQRESP-EXPECTED-CHUNKS - this is an integer, which will be multiplied by 10 to calculate the amount of seconds the peer has to respond with all the data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.