dudaodong
|
539078e6b8
|
doc: add play ground demo for v2.3.6
|
2025-05-29 11:50:17 +08:00 |
|
dudaodong
|
27667f8b3a
|
fix: fix bugs in test
|
2025-04-21 15:08:16 +08:00 |
|
dudaodong
|
0ef45b533b
|
fix: fix issue #292, change query params type to map[string][]string
|
2025-03-28 14:00:11 +08:00 |
|
dudaodong
|
5b9543255a
|
feat: add AddQueryParams
|
2025-03-15 14:52:49 +08:00 |
|
dudaodong
|
bf859387f4
|
feat: add BuildUrl
|
2025-03-15 14:25:03 +08:00 |
|
Yurun
|
05b85a2131
|
Pre-allocate memory to reduce the number of allocations (#272)
|
2024-11-27 14:58:02 +08:00 |
|
BoWen Qiu
|
1671f7856a
|
feat(netutil): add async http request for http client (#256)
* fix(algorithm): fix bug of lrucache in issue #251
* feat(netutil): add async send request for HttpClient
|
2024-10-18 15:14:52 +08:00 |
|
dudaodong
|
f99a8ef3cf
|
refactoring: defect #247
|
2024-09-20 19:29:31 +08:00 |
|
dudaodong
|
4d21e81263
|
feat: add Timeout config for http client
|
2024-06-04 16:28:00 +08:00 |
|
dudaodong
|
de9ee08be4
|
test: update net error handle
|
2024-04-18 14:23:36 +08:00 |
|
Joker-desire
|
e461acdb72
|
fix(netutil): Add proxy IP to send request (#210)
* fix(netutil): Add proxy ip to send request
* fix(netutil): Add proxy IP to send request
---------
Co-authored-by: 杨崟 <yangyin@addcn.com>
|
2024-04-03 16:52:53 +08:00 |
|
dudaodong
|
2a796adf85
|
fix: support nest struct in StructToUrlValues
|
2024-04-02 17:38:40 +08:00 |
|
dudaodong
|
96320069f4
|
doc: update for release v2.2.8
|
2023-12-11 15:30:33 +08:00 |
|
dudaodong
|
0753ea2801
|
feat: add context for httpClient SendRequest function
|
2023-10-18 19:13:34 +08:00 |
|
dudaodong
|
8229de2f10
|
test: add parallel running for all unit test functions
|
2023-06-30 10:18:45 +08:00 |
|
Mickls
|
e839af3ef9
|
feat: Add support for uploading files in SendRequest (#111)
|
2023-06-13 13:55:47 +08:00 |
|
dudaodong
|
64982f0c89
|
fix: fix body param bug when send post request
|
2023-05-30 10:51:33 +08:00 |
|
dudaodong
|
f93c561f5d
|
doc: update go playground demo
|
2023-04-27 12:03:15 +08:00 |
|
dudaodong
|
4888909208
|
fix: fix IsPingConnected failed in windows
|
2023-04-26 19:53:53 +08:00 |
|
dudaodong
|
4311b9ac66
|
test: remove t.Log()
|
2023-04-26 14:59:45 +08:00 |
|
dudaodong
|
48c17ea1ce
|
fix: update params in TestIsPingConnected
|
2023-04-19 17:40:55 +08:00 |
|
dudaodong
|
e90283c3f9
|
fix: update params in TestIsPingConnected
|
2023-04-19 17:35:17 +08:00 |
|
dudaodong
|
f82c4a305d
|
fix: update params in TestIsPingConnected
|
2023-04-19 17:32:30 +08:00 |
|
dudaodong
|
05997603a9
|
doc: add document for DownloadFile and UploadFile
|
2023-04-19 16:16:47 +08:00 |
|
dudaodong
|
6d5ec807f7
|
test: comment some test case
|
2023-04-19 16:04:35 +08:00 |
|
dudaodong
|
f73c7e7e86
|
doc: add document and example for IsPingConnected and IsTelnetConnected
|
2023-04-19 11:48:28 +08:00 |
|
dudaodong
|
c137428b9e
|
feat: add IsPingConnected and IsTelnetConnected
|
2023-04-19 11:14:10 +08:00 |
|
dudaodong
|
9f68620b37
|
feat: add IsPingConnected and IsTelnetConnected
|
2023-04-19 11:13:21 +08:00 |
|
dudaodong
|
2cdbba56a4
|
feat: add UploadFile and DownloadFile
|
2023-04-18 20:09:56 +08:00 |
|
dudaodong
|
ef1e548dfc
|
merge main
|
2023-03-13 19:44:44 +08:00 |
|
zm
|
924589d2da
|
Add StructUtil for provide more rich functions (#79)
* add support json tag attribute for StructToMap function
* add the structutil to provide more rich functions and fixed #77
|
2023-03-13 19:28:37 +08:00 |
|
dudaodong
|
6a9eb645bb
|
fix: fix StructToUrlValues failed when tag contain omitempty
|
2023-03-06 17:07:57 +08:00 |
|
dudaodong
|
d3fab15af3
|
refactor: clean structure for netutil package
|
2023-01-14 14:39:06 +08:00 |
|
dudaodong
|
b05a0a91c3
|
test&doc: add example and update doc for netutil package
|
2023-01-08 16:54:29 +08:00 |
|
dudaodong
|
00407e5182
|
fix: fix lint issue
|
2022-12-10 19:09:18 +08:00 |
|
dudaodong
|
7d8d9c3543
|
fix: fix lint issue
|
2022-12-10 16:55:06 +08:00 |
|
dudaodong
|
1197e8d1b6
|
fix: fix lint issue
|
2022-12-10 16:53:41 +08:00 |
|
dudaodong
|
13bbe19ab2
|
fix: fix lint issue
|
2022-12-10 16:41:40 +08:00 |
|
dudaodong
|
90ce2705ca
|
test: add unit test for http client
|
2022-08-30 17:33:58 +08:00 |
|
dudaodong
|
35e1d09ce3
|
feat: add http client for sending http request
|
2022-08-30 17:22:17 +08:00 |
|
Abirdcfly
|
fbf251d805
|
delete minor unreachable code caused by log.Fatal (#54)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
|
2022-08-10 14:19:21 +08:00 |
|
dudaodong
|
506a8b4776
|
feat: add EncodeUrl function
|
2022-07-15 16:29:41 +08:00 |
|
dudaodong
|
5edafec393
|
Merge branch 'main' into v2
|
2022-07-13 09:55:04 +08:00 |
|
tangqiu0205
|
957878dd98
|
feat: add func GetRequestPublicIp and IsInternalIP (#40)
* add: add func GetRequestPublicIp and IsInternalIP
* fix: fix test fileutil fail
Co-authored-by: zhanghu <305835360@qq.com>
|
2022-07-13 09:52:35 +08:00 |
|
dudaodong
|
3dbd7d8980
|
fix: sending post request with header multipart/form-data support query string type is map[string]string
|
2022-07-07 10:23:15 +08:00 |
|
dudaodong
|
b4cd0750e4
|
fix: fix http post to support multipart/form-data header
|
2022-04-14 11:48:39 +08:00 |
|
dudaodong
|
50c6e51393
|
upgrade go module v2
|
2022-03-17 10:57:35 +08:00 |
|
dudaodong
|
c939b26cb8
|
refactor: interface{} -> any
|
2022-03-16 18:41:40 +08:00 |
|
dudaodong
|
b3c34578bf
|
fix: set request body content-length
|
2022-02-25 16:38:32 +08:00 |
|
dudaodong
|
f26477904e
|
refactor: set body byte for http post request
|
2022-02-25 15:31:39 +08:00 |
|