repo_description: Simple HTTP, REST, and SSE client library for Go
repo_topics: backoff circuit-breaker curl-command digest-authentication go go-library go-resty golang golang-library hacktoberfest http-client http-trace load-balancer middleware redirects rest-client retry service-discovery srv-record sse-client
code: // Copyright 2021 The Go Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style
  // license that can be found in the LICENSE file.
  
  //go:build !(js && wasm)
  // +build !js !wasm
  
  package resty
  
  import (
  	"context"
  	"net"
  )
  
  func transportDialContext(dialer *net.Dialer) func(context.Context, string, string) (net.Conn, error) {
  	return dialer.DialContext
  }
  