Oleksandr Redko
b334443d63
docs: add missing dot to ConvertRequest comment ( #1516 )
2023-03-14 22:37:04 +01:00
Oleksandr Redko
a281f1d21f
client: HostClient.Do hangs out when ErrConnPoolStrategyNotImpl ( #1515 )
2023-03-14 22:36:38 +01:00
Oleksandr Redko
7846101dc6
client: fix Do hangs when configure host client fails ( #1514 )
2023-03-11 17:48:33 +01:00
Erik Dubbelboer
9c0e39f092
Fix proxy auth bug
...
fixes #1513
2023-03-08 20:13:22 +01:00
Oleksandr Redko
a9d57a9461
client: remove unused go:build comment ( #1511 )
2023-03-06 17:08:11 +01:00
Oleksandr Redko
498a814fbf
test: fix typos in function, error message, comment ( #1512 )
2023-03-06 16:55:21 +01:00
Oleksandr Redko
4ca6994c93
test: use Fprintf to simplify writing headers ( #1510 )
2023-03-06 11:13:37 +01:00
Igor Menshenin
74a050705b
Immediately return ErrTimeout if deadline is already reached. ( #1497 )
...
* fix: Immediately return ErrTimeout if deadline is already reached.
* test: Added tests for negative timeout
---------
Co-authored-by: Igor Menshenin <igor@native.rent >
2023-03-03 21:25:39 +01:00
dependabot[bot]
559d536fd4
Bump golang.org/x/crypto from 0.0.0-20220214200702-86341886e292 to 0.1.0 ( #1508 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.0.0-20220214200702-86341886e292 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 20:50:27 +01:00
Oleksandr Redko
4e8c92b2ef
http.go: close form file if copyZeroAlloc fails ( #1498 )
2023-03-03 20:48:32 +01:00
dependabot[bot]
8800d4b993
Bump golang.org/x/net from 0.0.0-20220906165146-f3363e06e74c to 0.7.0 ( #1503 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.0.0-20220906165146-f3363e06e74c to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/commits/v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 18:21:34 +01:00
dependabot[bot]
c8d2e0e6d2
Bump golang.org/x/text from 0.3.7 to 0.3.8 ( #1502 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 17:46:24 +01:00
cui fliter
ac631aa4eb
fix functiom name ( #1505 )
...
Signed-off-by: cui fliter <imcusg@gmail.com >
2023-03-03 17:43:44 +01:00
Oleksandr Redko
2ab79063af
test: bind to localhost instead of all interfaces ( #1495 )
...
Co-authored-by: Oleksandr Redko <oleksandr.redko@clarity-ag.net >
2023-02-15 11:56:23 +01:00
Oleksandr Redko
b79a03aaf9
test: close response body ( #1496 )
2023-02-15 11:54:23 +01:00
Oleksandr Redko
9230a3dd7a
docs: Deprecate ErrAlreadyServing as never returning ( #1491 )
2023-02-13 10:44:47 +08:00
Oleksandr Redko
e15a810a98
docs: fix grammar issues and typos in comments ( #1492 )
2023-02-13 10:43:44 +08:00
Oleksandr Redko
5147cecec7
docs: replace links to golang.org with go.dev ( #1489 )
...
- Replace https://godoc.org with https://pkg.go.dev .
- Replace https://golang.org with https://go.dev .
- Replace https://golang.org/pkg with https://pkg.go.dev .
- Replace https://blog.golang.org with https://go.dev/blog .
- Use https://pkg.go.dev/golang.org/x/net/http2 instead of non-existing https://http2.golang.org/ .
- Remove trailing slashes.
2023-02-11 19:59:44 +08:00
Oleksandr Redko
934f04e330
Refactor golangci-lint config and remove redundant nolints ( #1486 )
...
* Refactor golangci-lint config
- Use golangci-lint-action for GitHub workflow.
- Add additional golangci-lint run options.
- Remove unused nolint directives.
* Revert exclude-use-default option
2023-02-11 15:35:15 +08:00
Oleksandr Redko
f84e2346ba
Rename unexported funcs, vars to match common Go ( #1488 )
...
See https://github.com/golang/go/wiki/CodeReviewComments#initialisms
and https://go.dev/doc/effective_go#mixed-caps
2023-02-10 21:34:49 +08:00
Oleksandr Redko
f111c7e548
Add missing fasthttp prefix in example usage ( #1487 )
2023-02-10 18:18:30 +08:00
Oleksandr Redko
8dcbc41e37
test: use T.TempDir instead of MkdirTemp ( #1485 )
...
* test: use T.TempDir instead of MkdirTemp
* Fix test by adding reader.ff.Release()
2023-02-10 18:17:56 +08:00
Oleksandr Redko
c0c5f9cd38
doc,test: correct typos ( #1484 )
2023-02-09 09:29:28 +01:00
orangesobeautiful
b0fe6f00d2
optimized b2s function ( #1483 )
2023-02-08 08:24:24 +01:00
M. Efe Çetin
2e81dca7b2
update compress modulule, drop 1.16 ( #1482 )
2023-02-06 04:27:38 +01:00
Erik Dubbelboer
9d5a7bf7e3
Add support for Go 1.20 ( #1481 )
2023-02-03 08:41:39 +01:00
kinggo
b2e66a55d4
docs: add http2curl ( #1480 )
2023-02-03 04:38:07 +01:00
kinggo
776a4c721e
fix: modify normalizePath ( #1478 )
2023-02-01 06:51:12 +01:00
tyltr
eef368eb8d
clear dst bodyRaw before copy ( #1476 )
2023-01-23 12:07:21 +08:00
kinggo
e87f84c51a
fix: CopyTo doesn't copy bodyraw deeply ( #1471 )
2023-01-14 10:44:11 +08:00
Aadithya V
fc2d704c1f
chore: Update README.md ( #1470 )
...
Grammar fix in doc's introduction.
v1.44.0
2023-01-10 08:46:18 +01:00
Erik Dubbelboer
2a00c86a0e
Github actions/checkout@v3
2023-01-06 05:10:47 +01:00
Sergey Ponomarev
434022b461
server.go Simplify default Server name logic ( #1467 )
...
The serverName atomic.Value field is used as a cache. This is not needed and logic can be simplified.
See related #1458
2023-01-06 04:55:09 +01:00
Sergey Ponomarev
51048b0620
client.go Simplify default UA logic ( #1466 )
...
The getClientName() checks if !NoDefaultUserAgentHeader then returns the Client.Name field.
But it also saves it to atomic field clientName. This is not needed and logic can be simplified.
Previously the clientName vas a byte slice that was copied from c.Name and cached. See 02e0722fb7
Fix #1458
2023-01-02 12:51:39 +08:00
Xuran
e46afc3ae3
fix: client may remove hostclient incorrectly ( #1461 )
2022-12-29 19:18:27 +08:00
Shawn
9b4a7e5bf4
fix http2 adapter ( #1457 )
2022-12-25 10:07:22 +01:00
kinggo
c637221c5f
optimize: allow http head when use getonly ( #1456 )
2022-12-25 09:38:13 +01:00
kinggo
b788e663c6
feat: support custom formvalue function ( #1453 )
2022-12-25 09:37:49 +01:00
kinggo
2a572e08ef
doc: optimize the comment of the Request.Done method ( #1454 )
2022-12-18 11:29:17 +01:00
Amzza0x00
f6aac906c8
Fixed an error caused of character when @ > 1 during proxy authentication ( #1452 )
...
* Fixed a error caused by more @ character during proxy authentication
* Fixed a error caused by more @ character during proxy authentication
2022-12-08 15:03:55 +08:00
Tobias Krischer
951f5a154c
add optional simulated addresses to pipeconn and inmemorylistener ( #1449 )
...
* add optional simulated addresses to pipeconn and inmemorylistener
* add mutexes to addresses of pipeConn and InmemoryListener
2022-12-07 13:31:42 +08:00
Erik Dubbelboer
dbf457ee66
Revert "feat: support mulit/range ( #1398 )" ( #1446 )
...
This reverts commit a468a7dd37 .
v1.43.0
2022-11-28 11:52:30 +01:00
Sergey Ponomarev
c50de95952
client.go fix addMissingPort() ( #1444 )
...
* client.go Make addMissingPort() public
It's needed for those who creates the instance of the HostClient manually.
* client.go fix AddMissingPort()
Previously for IPv6 addresses the default port wasn't added.
The fix adding a test and optimization that should avoid itoa() call and reduce a memory usage
2022-11-28 08:06:09 +01:00
kinggo
49951353c8
feat: add ShutdownWithContext ( #1383 )
v1.42.0
2022-11-20 13:26:36 +02:00
kinggo
7b3bf58850
style: modify typo and remove repeated type conversions ( #1437 )
2022-11-18 08:13:18 +02:00
Andy Pan
8f434434e7
Wait for the response of pipelineWork in background and return it to pool ( #1436 )
2022-11-17 06:31:03 +01:00
Andy Pan
c367454ffe
Fix some potential pool leaks ( #1433 )
2022-11-16 06:46:28 +02:00
Andy Pan
b32a3dda13
Use time.Until(deadline) instead of -time.Since(deadline) ( #1434 )
2022-11-16 06:13:29 +02:00
Andy Pan
8a60232af1
Assert with *net.TCPConn instead of *net.TCPListener in acceptConn() for TCP sockets ( #1432 )
...
Make the code more succinct.
2022-11-15 16:34:34 +01:00
hs son
c57a2ce871
Make sure nothing is nil in tmp slice ( #1423 )
2022-11-14 18:15:41 +02:00