package
1.5.0
Repository: https://github.com/issue9/assert.git
Documentation: pkg.go.dev

# Functions

BuildHandler 生成用于测试的 http.Handler 对象 仅是简单地按以下步骤输出内容: - 输出状态码 code; - 输出报头 headers,以 Add 方式,而不是 set,不会覆盖原来的数据; - 输出 body,如果为空字符串,则不会输出;.
No description provided by the author
NewRequest 创建新的请求实例 client 如果为空,则会采用 &http.Client{} 作为其值。.
NewServer 声明新的测试服务 如果 client 为 nil,则会采用 http.DefaultClient 作为默认值.
NewTLSServer 声明新的测试服务 如果 client 为 nil,则会采用 http.DefaultClient 作为默认值.

# Structs

Request 请求的参数封装.
Response 测试请求的返回结构.
Server 测试服务.