Commit Graph

753 Commits

Author SHA1 Message Date
John Guo
ee16b6df88 change build-in swagger ui to public cdn 2022-03-23 14:43:48 +08:00
Macrow
325887fa18 fix: SetListener overwrite default address 2022-03-22 21:35:53 +08:00
Macrow
73ca527b0a feat: add SetListener and throw error in SetListeners 2022-03-22 13:34:15 +08:00
Macrow
147348e0d1 refactor: remove unnecessary code in method getListenAddress of Server 2022-03-20 10:17:44 +08:00
Macrow
ad202ea735 refactor: adjust method SetListeners of server and add unit test 2022-03-20 02:31:21 +08:00
houseme
8357b0f649 improve comment 2022-03-19 17:58:21 +08:00
Macrow
d7bd1b74e8 feat: support custom listener 2022-03-18 20:54:32 +08:00
John Guo
bceb5fc7de rename gdebug.TestData* -> gtest.Data*; add UT case for http server 2022-03-17 16:58:04 +08:00
John Guo
9e056dfac8 Merge branch 'master' of https://github.com/gogf/gf 2022-03-11 10:24:57 +08:00
John Guo
d8d9996464 fix issue #1662 2022-03-11 10:24:42 +08:00
John Guo
43992a137e
Merge pull request #1659 from arieslee/master
[fix bug] the default value of r.get is invalid
2022-03-11 09:14:11 +08:00
sunmoon
7767bf4d5d 重跑ci 2022-03-11 07:54:34 +08:00
sunmoon
5813979479 重跑ci 2022-03-10 14:32:06 +08:00
John Guo
546b6b1724 t.Assert(err, nil) -> t.AssertNil(err) 2022-03-10 11:36:40 +08:00
sunmoon
2471130f59 重跑ci 2022-03-10 09:52:45 +08:00
sunmoon
12eb3ac63e [fix bug] the default value of r.get is invalid 2022-03-10 09:33:33 +08:00
John Guo
e3f0163092 Merge branch 'master' of https://github.com/gogf/gf 2022-03-10 09:23:01 +08:00
John Guo
213392640c fix issue #1653 2022-03-10 09:22:50 +08:00
houseme
c200177af4 fix: js link err 2022-03-09 23:36:30 +08:00
houseme
3d6867c321 fix 2022-03-09 21:29:49 +08:00
houseme
3d5ff3b250 fix 2022-03-09 21:27:02 +08:00
houseme
be47203732 improve code 2022-03-09 21:24:57 +08:00
houseme
f6054ab37f improve code 2022-03-09 18:32:13 +08:00
houseme
5537930210 fix 2022-03-09 18:30:32 +08:00
houseme
920dbbef5e fix: server access logs contain the protocol used between the server and the load balancer, but not the protocol used between the client and the load balancer 2022-03-09 17:42:56 +08:00
John Guo
0b3cd7b7ae improve handler response for ghttp.Server 2022-03-08 11:50:23 +08:00
John Guo
47ee2cba51 Merge branch 'master' of https://github.com/gogf/gf 2022-03-07 09:58:07 +08:00
John Guo
531cc7b864 fix issue in package gproc 2022-03-07 09:57:51 +08:00
John Guo
54bdabd94d
Merge pull request #1549 from FlyingBlazer/cookie-secure-config
ghttp: add cookie security configurations
2022-03-04 17:42:44 +08:00
John Guo
bb6e8fe7a8 Merge branch 'master' of https://github.com/gogf/gf 2022-03-04 11:37:30 +08:00
John Guo
d5d199ebef Swagger UI updates 2022-03-04 11:36:05 +08:00
John Guo
158a4589d2
Merge pull request #1637 from wangbs95/feature/fix-chinese-encode
fix(fix bug , add nexttime feature): ServeFileDownload filename doubl…
2022-03-04 09:32:01 +08:00
John Guo
4e2d378145 improve file uploading using strict route feature 2022-03-02 21:15:16 +08:00
yuzhan
3bff71b3fc merge master and update unit test 2022-03-02 15:33:58 +08:00
yuzhan
8343d1cd0e Merge branch 'master' into cookie-secure-config 2022-03-02 15:20:31 +08:00
med-one
5c23c0cecd fix(fix bug , add nexttime feature): ServeFileDownload filename double quotes cause underscores before and after the final file 2022-03-02 11:00:04 +08:00
yuzhan
072d5f9760 make options public 2022-03-02 09:56:58 +08:00
John Guo
ea354d10cc
Merge pull request #1636 from wangbs95/feature/fix-chinese-encode
revert(fix bug , add nexttime feature): ServeFileDownload File name C…
2022-03-01 22:52:34 +08:00
John Guo
f8067f5dd5 improve package ghttp 2022-03-01 22:53:19 +08:00
med-one
68bdf7deb4 revert(fix bug , add nexttime feature): ServeFileDownload File name Chinese garbled repair 2022-03-01 18:32:11 +08:00
John Guo
50f6b6e0f0 fix UT case for package ghttp 2022-03-01 14:08:36 +08:00
John Guo
88a9eef8a6 api swagger ui update 2022-03-01 11:43:42 +08:00
John Guo
b5e8e68713 fix issue #1625 2022-02-24 22:07:27 +08:00
John Guo
d27db119a0 fix issue #1626 2022-02-24 21:24:42 +08:00
John Guo
3db5358dcc fix issue #1615 2022-02-23 10:34:38 +08:00
John Guo
22941276a5 fix issue #1611 2022-02-22 21:59:18 +08:00
John Guo
20a50cb198 fix issue #1615 2022-02-22 21:32:48 +08:00
John Guo
f0cd3c084e fix data race in UT cases for package ghttp 2022-02-22 20:49:09 +08:00
John Guo
6f5058c9b6 add x-url-path feature for ghttp.Server 2022-02-22 14:12:09 +08:00
John Guo
4935416b94 add middleware for CORS with default options 2022-02-22 10:51:22 +08:00
John Guo
b6a7788240 fix issue #1609 2022-02-17 22:24:50 +08:00
John Guo
54b564b871 fix UT cases for package ghttp 2022-02-17 21:14:11 +08:00
John Guo
255b502460 README update 2022-02-17 17:15:09 +08:00
John Guo
073869b354 downgrade otel version from v1.3.0 to v1.0.0 2022-02-17 15:47:08 +08:00
John Guo
9fdf20b3e2 add SetError for ghttp.Request 2022-02-17 11:51:21 +08:00
John Guo
2428b27168 fix issue #1488 2022-02-15 00:21:05 +08:00
John Guo
5f2047d61b fix issue in configuration StdoutColorDisabled for package glog; rename TempDir to Temp for package gfile 2022-02-14 14:50:25 +08:00
John Guo
af39eb4c9f CI update; Example update for package gcache 2022-02-08 23:13:33 +08:00
John Guo
c3161d58fd improve registry for package ghttp 2022-01-29 21:42:48 +08:00
John Guo
4fae47db63 add secondary configuration node name for http server; improve package gsvc 2022-01-28 17:29:05 +08:00
John Guo
f13ccd8527 Merge branch 'master' into feature-gsvc 2022-01-28 16:09:21 +08:00
John Guo
8b48f16508 improve service registry for package ghttp; improve service discovery for package gclient; improve cli 2022-01-28 16:00:16 +08:00
John Guo
04eb654133 add error stack for internal error printing 2022-01-28 14:51:49 +08:00
John Guo
3a658cdb85 improve service registry for package ghttp/gclient 2022-01-27 18:12:39 +08:00
John Guo
3cb578488c add service registry feature for package ghttp/gclient 2022-01-27 16:50:31 +08:00
John Guo
c845d1d93d add Weight/RoundRobin/LeastConnection selector for package gsel; improve package balancer 2022-01-27 15:15:55 +08:00
John Guo
d322e67117 fix string print for time only gtime.Time; improve package drivers 2022-01-27 12:04:46 +08:00
John Guo
9ff17810a4 add raw grpc example using gsvc/resolver/registry-etcd 2022-01-26 23:43:48 +08:00
John Guo
5f87591407 improve package gsvc 2022-01-26 22:23:54 +08:00
John Guo
65c385c013 add etcd registry; add resolver; improve balancer 2022-01-26 20:51:17 +08:00
John Guo
7ac9c46f12 mark underlying PostForm function deprecated for gclient.Client 2022-01-25 23:01:35 +08:00
John Guo
c371e5221a improve package gsel 2022-01-24 23:33:56 +08:00
John Guo
c9529199a1 add package gsvc/gsel 2022-01-24 23:09:26 +08:00
John Guo
e517bf7b0e improve details for package gjson/gtcp/gudp 2022-01-22 15:45:38 +08:00
John Guo
3b811c3434 add GetFreePort/GetFreePorts for package gtcp/gudp 2022-01-22 15:33:31 +08:00
John Guo
9e3a49dd1b add GetFreePort/GetFreePorts for package gipv4 2022-01-22 15:12:58 +08:00
John Guo
3dcd9b535b UT update for package gclient/ghttp 2022-01-19 18:26:39 +08:00
John Guo
3bbbe1db9c change pointer receiver that implements interface MarshalJSON to struct receiver for all packages 2022-01-19 16:55:57 +08:00
John Guo
9892cc46e4 improve package ghttp 2022-01-13 20:57:13 +08:00
John Guo
9486f6e7e9 improve package gcmd/ghttp 2022-01-12 19:39:38 +08:00
John Guo
d4cb1666e5 improve package gclient for constants 2022-01-10 16:42:30 +08:00
于湛
d045b4d2f5 make unit test compatible with go 1.15 2022-01-07 18:52:21 +08:00
于湛
572e71d76a add CookieOptions
add UnitTest
2022-01-07 17:10:21 +08:00
John Guo
09f83bdd58 add panic for ghttp.Server.GetBody 2022-01-06 21:47:36 +08:00
于湛
c91b83969c WIP: add cookie security configuration 2022-01-05 14:33:20 +08:00
John Guo
09f9d1cb7a improve package gcmd 2022-01-01 00:18:50 +08:00
John Guo
fab17f89c4 fix issue in ut for package gsha1/gclient/ghttp/gregex 2021-12-23 00:34:02 +08:00
John Guo
48c5c1e5a8 change errors wrapped by gerror.Wrap with error stack info for all packages 2021-12-23 00:09:00 +08:00
John Guo
b9bb1ecd46 Merge branch 'master' of https://github.com/gogf/gf into feature/v2-gerror 2021-12-22 22:29:02 +08:00
John Guo
cafd9098d7 change errors wrapped by gerror.Wrap with error stack info for all packages 2021-12-22 22:22:42 +08:00
John Guo
ce93b625d4 change errors wrapped by gerror.Wrap with error stack info for all packages 2021-12-21 22:59:14 +08:00
houseme
25bdf10cc8 feat:improve tracing 2021-12-19 00:44:31 +08:00
houseme
02c6deaec8 feat:modify trace-ID to TraceID 2021-12-19 00:18:18 +08:00
John Guo
29a996e70e add Trace-Id response header for package ghttp 2021-12-18 21:54:12 +08:00
John Guo
4978955404 fix issue in missing handler name for standard router handlers 2021-12-18 18:25:04 +08:00
John Guo
77422f71f7 add fnction MustSet/MusetSetMap for package gsession 2021-12-18 14:10:55 +08:00
John Guo
40225c5352 improve route dump for package ghttp;remove mutex for package gtag 2021-12-18 12:54:09 +08:00
John Guo
ad48dc025b improve route dump for package ghttp 2021-12-18 12:43:33 +08:00
John Guo
1215f67aac improve route dump for package ghttp 2021-12-18 12:36:34 +08:00
John Guo
656d1bbbd6 improve content type response for ghttp.Server 2021-12-17 17:42:18 +08:00
John Guo
b9d6ac26d1 rename cache function from func() (interface{}, error) to func(ctx context.Context) (value interface{}, err error) for package gcache; add cache for function Tables of gdb.Core; improve Where condition with prefix handling for package gdb 2021-12-17 11:46:05 +08:00
John Guo
f583f28953 rename SetTraceID to WithTraceID for package gtrace 2021-12-17 01:27:24 +08:00
John Guo
b6d60fc209 downgrade otel version to v1.0.0 2021-12-17 00:55:48 +08:00
John Guo
8f24dc3549 add SetTraceID for package gtrace 2021-12-17 00:06:38 +08:00
John Guo
fa45715416 go fmt for go 1.17 2021-12-16 23:26:41 +08:00
John Guo
aee52fd56e enable OpenTelemetry in default for some core components 2021-12-16 23:09:37 +08:00
John Guo
34e7913268 add internal logging for package gtrace 2021-12-10 23:26:53 +08:00
John Guo
39bbca2a50 add stack filter of goframe module path for logging content 2021-12-10 18:52:35 +08:00
John Guo
3f24159636 add tracing configuration switch for whole framework 2021-12-10 18:08:36 +08:00
John Guo
dacc19ac98
Merge pull request #1508 from Hades300/GetRemoteIp-IPv6Fix
ghttp_request.go GetRemoteIp ipv6 fix
2021-12-05 21:59:20 +08:00
John Guo
8de176d73f move package /net/ghttp/internal/client as /net/gclient 2021-12-03 23:32:00 +08:00
John Guo
afc3367f31 auto enable dump feature for ghttp.Client 2021-12-03 17:49:26 +08:00
hades300
e2fbce0420 ghttp_request.go GetRemoteIp ipv6 fix 2021-12-03 16:07:04 +08:00
John Guo
b840405af6 improve error logging format for ghttp.Server 2021-12-02 21:22:02 +08:00
houseme
5ed5adc6df feat:add trace db.statement、host.name 2021-12-02 18:54:56 +08:00
John Guo
35cf228d83 add AdapterRedis for package gcache 2021-11-27 01:10:00 +08:00
John Guo
9105590c69 improve chaining feature for ghttp.Client 2021-11-25 16:23:18 +08:00
John Guo
7b22355abb expose package internal/structs as os/gstructs; add package gtag for custom tag storage feature 2021-11-24 16:17:50 +08:00
John Guo
9748b9f70b improve association feature for package gvalid 2021-11-23 10:42:43 +08:00
John Guo
cea6e4c3d9 improve package gvalid 2021-11-22 22:43:09 +08:00
John Guo
57ccc13e0c unit testing files renaming 2021-11-17 23:20:58 +08:00
John Guo
6ad7baeb2c remove gsmtp 2021-11-16 23:39:45 +08:00
houseme
bb4f72d1ec improve code Introduce according to grouping 2021-11-16 19:43:02 +08:00
houseme
e86ee052cb improve code import 2021-11-16 19:29:02 +08:00
houseme
ff8633231f improve code 'if block ends with a return statement, so drop this else and outdent its block (golint)' 2021-11-16 00:26:10 +08:00
houseme
8ddab7f0cc
Merge branch 'gogf:master' into master 2021-11-14 22:50:53 +08:00
John Guo
e23704d694 improve package gvalid by adding extra internal variable for error message template, changing :xxx varibale name to {xxx} format 2021-11-14 21:00:34 +08:00
houseme
e4ddeb6033 Improved import, by group improt. 2021-11-14 18:24:38 +08:00
John Guo
1a7450b9e9 v2.0.0-beta 2021-11-14 11:36:59 +08:00
houseme
be03b3cdda Improved import, by group improt. 2021-11-13 23:23:55 +08:00
John Guo
748040fb0b improve group router for package ghttp 2021-11-07 21:31:33 +08:00
John Guo
79a233eb78 example&comment update 2021-11-01 19:46:39 +08:00
John Guo
e22e1d0e4a remove function Println from package glog 2021-10-30 19:44:22 +08:00
John Guo
17e6063c5c add neccessary parameter context for package gcron/gtimer 2021-10-30 15:36:10 +08:00
John Guo
1bfa792ea9 fix context canceled error while propagate context from http.Request 2021-10-28 23:37:51 +08:00
John Guo
8ef4f68215 add IgnoreEmptySliceWhere feature for package gdb; add OriginValueAndKind/OriginTypeAndKind functions for package internal/utils 2021-10-28 23:18:23 +08:00
John Guo
aacfa1bd96 add short typed tag mapping for summary/description for package goai;add suffix checks for request/response struct naming 2021-10-21 20:17:02 +08:00
John Guo
862ef57e0f fix unit testing cases 2021-10-21 19:25:39 +08:00
John Guo
fa5499373a replace char <xxx> to ;add GetWithEnv/GetWithCmd fuctions for package gcfg 2021-10-21 18:22:47 +08:00
John Guo
085c887b33 openapi 2021-10-13 22:34:52 +08:00
John Guo
920c97af79 openapi 2021-10-13 22:28:49 +08:00
John Guo
1bc0635f8b version 2 2021-10-11 21:41:56 +08:00
John Guo
89661301b0 fix issue for unit testing case for package ghttp 2021-10-06 20:16:18 +08:00
John Guo
18ede3ae1f improve error information for package goai 2021-10-06 15:03:00 +08:00
John Guo
9ed79e9e86 openapi generating for ghttp.Server 2021-10-06 14:52:29 +08:00
John Guo
82d04d612b fix openapi specification generating; improve handler type 2021-10-06 14:22:58 +08:00
John Guo
9f2eeb23ba print error stack in faltal error for ghttp.Server 2021-10-06 12:12:59 +08:00
John Guo
c84e79a46d improve swagger ui feature for package ghttp 2021-10-06 11:54:53 +08:00
John Guo
322f5933ad add build-in swagger ui support for ghttp.Server 2021-10-03 00:22:06 +08:00
John Guo
1e80dc71eb add automatic generating for OpenApi specification for ghttp.Server routes 2021-10-02 22:34:39 +08:00