Affected by GO-2022-0392
and 6 other vulnerabilities
GO-2022-0392 : Denial of service in go-ethereum due to CVE-2020-28362 in github.com/ethereum/go-ethereum
GO-2022-0456 : DoS via malicious p2p message in Go Ethereum in github.com/ethereum/go-ethereum
GO-2022-0775 : Erroneous Proof of Work calculation in geth in github.com/ethereum/go-ethereum
GO-2022-0814 : Go Ethereum Denial of Service in github.com/ethereum/go-ethereum
GO-2022-0871 : Go Ethereum Improper Input Validation in github.com/ethereum/go-ethereum
GO-2023-2046 : Unbounded memory consumption in github.com/ethereum/go-ethereum
GO-2024-2819 : Denial of Service in github.com/ethereum/go-ethereum
Discover Packages
github.com/ethereum/go-ethereum
Godeps
_workspace
src
golang.org
x
net
context
ctxhttp
package
Version:
v1.4.14
Opens a new window with list of versions in this module.
Published: Sep 28, 2016
License: GPL-3.0, BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
Do(ctx, client, req)
Get(ctx, client, url)
Head(ctx, client, url)
Post(ctx, client, url, bodyType, body)
PostForm(ctx, client, url, data)
Types
Source Files
Documentation
Documentation
¶
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
func Get(ctx context.Context, client *http.Client, url string) (*http.Response, error)
func Head(ctx context.Context, client *http.Client, url string) (*http.Response, error)
func Post(ctx context.Context, client *http.Client, url string, bodyType string, ...) (*http.Response, error)
func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error)
Do sends an HTTP request with the provided http.Client and returns an HTTP response.
If the client is nil, http.DefaultClient is used.
If the context is canceled or times out, ctx.Err() will be returned.
Get issues a GET request via the Do function.
Head issues a HEAD request via the Do function.
Post issues a POST request via the Do function.
PostForm issues a POST request via the Do function.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.