SUDOCS
63c3e8396b
attach and export real handler for request ( #2220 )
...
* attach and export real handler for request
* add note
* rename HandlerParsedItem to HandlerItemParsed
Co-authored-by: John Guo <john@johng.cn>
2022-11-01 20:17:59 +08:00
houseme
1793bf0863
add golangci feature to guarantee codes quality ( #2229 )
2022-11-01 20:12:21 +08:00
ivothgle
33fdde6afd
opt: parameter verification of optimized handler methods ( #2224 )
2022-10-20 19:36:01 +08:00
John Guo
ee6103418b
auto creating error with code in ghttp.MiddlewareHandlerResponse when there's no 200 http status code ( #2223 )
2022-10-20 15:50:17 +08:00
John Guo
b617d399b6
fix info content when listens on port :0 for ghttp.Server ( #2191 )
2022-10-11 19:20:39 +08:00
John Guo
b1611fee1b
improve port listening for ghttp.Server ( #2175 )
...
* version updates
* fix issue #2172
* improve port listening for ghttp.Server
* UT cases update
* UT cases update
* add GetListenedPort/GetListenedAddress for gtcp.Server
* UT cases update for package gudp
* up
2022-10-08 21:45:21 +08:00
John Guo
dba903c13b
add WithUUID for package gtrace ( #2176 )
...
* add WithUUID for package gtrace
* feat: improve import
Co-authored-by: houseme <housemecn@gmail.com>
2022-10-08 21:44:42 +08:00
John Guo
f1455ad37a
fix issue #2172 ( #2173 )
...
* version updates
* fix issue #2172
2022-10-08 11:46:38 +08:00
John Guo
66aa0c7050
add switch of brief stack for package gerror
( #2153 )
2022-09-27 10:11:33 +08:00
John Guo
faf09c586c
add GzipPathWriter for package gcompress ( #2116 )
...
* add GzipPathWriter for package gcompress
* UT case updates for package package gclient
2022-09-08 17:32:21 +08:00
John Guo
c866b5005f
fix error message for package gtrace ( #2103 )
2022-08-31 19:53:21 +08:00
John Guo
98169784b1
fix issue in OpenAPI json marshaling of embedded struct definition; improve command gen service ( #2089 )
...
* CI updates
* fix issue in OpenAPI json marshaling of embedded struct definition; improve command gen service
2022-08-24 21:20:17 +08:00
John Guo
26e3c7aeb8
fix issue 1914 ( #2075 )
...
* CI updates
* fix issue #1914
2022-08-18 21:05:58 +08:00
John Guo
f580b7a488
improve header printing in json format for package glog; add golang v1.18 support for ci workflow ( #2037 )
2022-07-29 19:06:22 +08:00
John Guo
6172862061
add MiddlewareJsonBody, improve error response handling for package ghttp ( #2032 )
2022-07-27 19:52:02 +08:00
ar026
1ae037f515
Update goai_path.go ( #2029 )
2022-07-26 22:48:40 +08:00
John Guo
98b2e8ab18
improve panic...recover of exit feature for package ghttp/gtimer/gfsnotify ( #2000 )
2022-07-13 20:20:38 +08:00
yuancjun
ab929e465b
update comment for ghttp.Request ( #1968 )
2022-07-06 19:48:43 +08:00
mingzaily
9159f00014
Fix goai repeat param ( #1916 )
2022-07-04 20:40:28 +08:00
John Guo
2c169e2330
improve package glog; fix issue in package gtrace ( #1952 )
2022-06-28 15:47:16 +08:00
John Guo
48f95d0009
fix issue in Response.WriteJson/Xml functions
2022-06-24 15:21:10 +08:00
John Guo
2bcee014f7
add tracing feature for package gproc ( #1923 )
2022-06-21 21:46:12 +08:00
John Guo
f0568b4e22
Merge branch 'develop'
2022-06-21 19:08:36 +08:00
Lonely
52056644d4
add context parameter ( #1919 )
2022-06-20 20:34:59 +08:00
John Guo
cf5884bc60
add SetBodyContent for gclient.Response
2022-06-17 11:31:32 +08:00
John Guo
cdd4473df5
improve command gen service; add error trace for error of some packages
2022-06-16 17:07:25 +08:00
John Guo
aaebaa7250
improve DoRequestObj for gclient.Client
2022-06-16 10:51:12 +08:00
John Guo
17ab0e2ced
remove returning error of Write* functions for ghttp.Server; add UT cases for gclient.Client.DoRequestObj
2022-06-15 19:36:53 +08:00
John Guo
f4f73f2765
Merge branch 'master' of https://github.com/gogf/gf into develop
2022-06-15 16:28:20 +08:00
John Guo
babc69e13d
add DoRequestObj function for gclient.Client
2022-06-15 16:28:17 +08:00
黄骞
b62b2f3598
Improve the code coverage of the gudp module ( #1907 )
2022-06-13 22:01:20 +08:00
黄骞
31a23e724d
Improve the code coverage of the gclient module ( #1899 )
2022-06-13 19:31:42 +08:00
John Guo
0d8952dcde
improve WithTraceID function for package gtrace
2022-06-06 21:36:30 +08:00
John Guo
88844649eb
fix version of redoc
2022-06-01 16:34:07 +08:00
John Guo
39af6e51c4
fix ut cases for package goai
2022-05-26 15:17:59 +08:00
John Guo
26066965c3
Merge branch 'master' of https://github.com/gogf/gf into develop
2022-05-25 16:02:48 +08:00
John Guo
7f199527f8
improve service discovery for package gclient
2022-05-24 19:16:43 +08:00
John Guo
ea79b3cbb8
move package goai from protocol to net
2022-05-24 18:53:10 +08:00
黄骞
0ca81bd11a
Improve the code coverage of the gtcp module ( #1836 )
2022-05-23 22:45:12 +08:00
John Guo
4d13ffdc26
improve ut case for empty upload file validation
2022-05-23 22:23:29 +08:00
John Guo
331a29024e
merge master
2022-05-23 22:17:06 +08:00
houseme
6aa5c2b2ef
Fix/1748 issues #1748 ( #1817 )
2022-05-23 22:09:11 +08:00
John Guo
ab5062663e
Feature/gsvc interface ( #1871 )
2022-05-23 15:08:11 +08:00
John Guo
07509e9847
go mod tidy
2022-05-19 10:49:09 +08:00
houseme
ab82599ee2
Feature/polaris feat: Add Polaris support ( #1797 )
2022-05-18 22:24:40 +08:00
chenghonour
61271e4f7b
Replace the Swagger JS CDN source from jsdelivr to unpkg.com ( #1852 )
...
replace the CDN source from jsdelivr to unpkg.com
The jsdelivr cdn certificate expired in the mainland, causing the website to hang. To fix it, the solution is to replace the CDN source to unpkg.com
2022-05-18 20:34:59 +08:00
huangqian
f82f53f5f6
modify ExampleNew_MultiConn_Recommend function
2022-05-13 11:58:46 +08:00
huangqian
e27ca17b0e
exec CI
2022-05-13 06:47:48 +08:00
huangqian
c7cf72e7bc
fix gClien Close()
2022-05-12 23:22:30 +08:00
huangqian
17fc1ce174
Call ReadAll() function in Close() of gClient
2022-05-12 20:08:24 +08:00
huangqian
baf4cc1d1c
remove bad example and little fix
2022-05-12 12:48:37 +08:00
huangqian
273b81d60f
little fix
2022-05-12 00:22:10 +08:00
huangqian
9026fd2c13
add gClient ExampleNew function, include normal New Example, bad MultiConn New Example and Recommend MultiConn New Example
2022-05-11 23:58:36 +08:00
John Guo
25c091df7f
improve package ghttp
2022-05-06 20:25:21 +08:00
John Guo
48fddcd5e7
improve session Manager and default Storage implements for package gsession; fix issue #1781
2022-04-27 15:05:34 +08:00
John Guo
878dbe4ab9
fix issue #1740
2022-04-13 20:42:39 +08:00
John Guo
a228495ced
improve error message for package ghttp
2022-04-12 16:15:54 +08:00
John Guo
e8581d4fd5
add Is/Equal/Unwrap functions for package gerror
2022-04-12 15:45:26 +08:00
John Guo
2d6fcf5d06
fix issue #1708
2022-04-12 12:09:09 +08:00
John Guo
1e141d9f64
improve package gjson/ghttp
2022-04-07 21:26:39 +08:00
John Guo
09c3425dd3
Merge pull request #1683 from Macrow/master
...
feat: support custom listener
2022-04-07 20:05:16 +08:00
Macrow
0e0d2e1c45
fix: break when finished set custom listener in newGracefulServer method
2022-04-01 09:03:36 +08:00
Macrow
c7f51b8e77
fix: SetListener test data race error
2022-03-30 14:55:03 +08:00
Macrow
b57cbacc82
refactor: method SetListener accepts slice of net.Listener and remove method SetListeners
2022-03-29 23:22:23 +08:00
John Guo
707dc6b346
add xextensions feature for package goai
2022-03-29 20:31:00 +08:00
John Guo
f4192d695c
remove sort feature for openapi
2022-03-24 22:08:06 +08:00
John Guo
6664437b06
add sort feature for path of openapi
2022-03-24 21:56:37 +08:00
John Guo
96a135834a
improve openapi genereating for package ghttp
2022-03-24 20:15:54 +08:00
John Guo
80c068ae05
add example for properties of swagger schema object
2022-03-23 15:05:37 +08:00
John Guo
6574b8cbfe
change build-in swagger ui to public cdn
2022-03-23 14:48:34 +08:00
John Guo
20c48b1712
change build-in swagger ui to public cdn
2022-03-23 14:46:56 +08:00
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