go roundtrip 源码

2022-07-15 浏览 (783)

golang roundtrip 代码

文件路径:/src/net/http/roundtrip.go

// Copyright 2018 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

package http

// RoundTrip implements the RoundTripper interface.
//
// For higher-level HTTP client support (such as handling of cookies
// and redirects), see Get, Post, and the Client type.
//
// Like the RoundTripper interface, the error types returned
// by RoundTrip are unspecified.
func (t *Transport) RoundTrip(req *Request) (*Response, error) {
	return t.roundTrip(req)
}

相关信息

go 源码目录

相关文章

go alpn_test 源码

go client 源码

go client_test 源码

go clientserver_test 源码

go clone 源码

go cookie 源码

go cookie_test 源码

go doc 源码

go example_filesystem_test 源码

go example_handle_test 源码

  • 所属分类: 后端技术
  • 本文标签: golang
  • 版权声明: 本文链接 https://seaxiang.com/blog/81f7df93d1c74782a07f2edeedddb99e