HTTPPost post 请求
(uri string, data string)
| 58 | |
| 59 | // HTTPPost post 请求 |
| 60 | func HTTPPost(uri string, data string) ([]byte, error) { |
| 61 | return HTTPPostContext(context.Background(), uri, []byte(data), nil) |
| 62 | } |
| 63 | |
| 64 | // HTTPPostContext post 请求 |
| 65 | func HTTPPostContext(ctx context.Context, uri string, data []byte, header map[string]string) ([]byte, error) { |
no test coverage detected
searching dependent graphs…