Commit Graph

322 Commits

Author SHA1 Message Date
yqiangli
8ab44dcb44 Get ghttp a chance to add custom host. 2020-03-31 21:50:15 +08:00
John
343126ef22 fix usage for garray.PopRand 2020-03-30 20:56:00 +08:00
John
05760d1eac fix usage for garray.PopRand 2020-03-30 20:47:50 +08:00
John
6059782de8 add unit testing case of basic auth for ghttp.Client; remove intlog for New function of package gspath 2020-03-29 19:36:49 +08:00
John
4844eea0ab add convenience function g.Client for ghttp.Client 2020-03-29 09:52:37 +08:00
John
ddcb7121c1 improve temporary path producing from gfile.Join to gfile.TempDir 2020-03-28 00:41:12 +08:00
John
fa8257c85b improve ghttp.Client 2020-03-25 17:13:05 +08:00
John
abb9c88c23 improve ghttp.Client 2020-03-25 15:17:18 +08:00
John
f89976cad5 improve ghttp.Client 2020-03-25 15:09:13 +08:00
John
75054ee109 fix issue in rebinding feature for grou router of ghttp.Server 2020-03-24 19:48:10 +08:00
John
75c081afc9 fix issue of char '/' in URL.Path handling of ghttp.Server 2020-03-23 20:57:34 +08:00
John
41a9e91b4c improve example for package gpage 2020-03-21 23:13:31 +08:00
John
c2966817ce improve function gdebug.TestDataPath and update all usage codes 2020-03-21 19:41:05 +08:00
John
16958413bb improve autoencode feature for package gview 2020-03-21 19:31:58 +08:00
John
c0a0913d4b add more unit testing case for template feature of ghttp.Server 2020-03-21 13:45:33 +08:00
John
6d47810782 improve context feature for ghttp.Request; improve comment for package gjson 2020-03-21 13:32:43 +08:00
John
7a9ea2e546 improve context feature for ghttp.Request 2020-03-20 23:22:32 +08:00
John
07e65c14a9 improve unit testing cases 2020-03-19 23:53:03 +08:00
John
0b6d04485e improve unit testing cases 2020-03-19 22:56:12 +08:00
John
36401a063d improve gutil.Dump, improve sqlite file searching when opening db file 2020-03-19 13:38:42 +08:00
John
33ae93e050 improve CORS feature for ghttp.Server 2020-03-17 17:46:43 +08:00
John
f3d859159d improve router group for duplicated router registering for package ghttp.Server 2020-03-17 14:48:52 +08:00
John
9f0548c03d improve testdata directory retrieving for unit testing cases 2020-03-16 22:47:39 +08:00
John
8230c72ec6 improve file uploading feature for ghttp.Request 2020-03-15 20:11:38 +08:00
John
0a92df691b improve package gpool/gfpool; donator updates 2020-03-14 17:12:44 +08:00
John
5a92d7de0d fix issue in router group registering for controller 2020-03-11 15:51:24 +08:00
fulltimelove
f13a5ad82e 分组路由对象绑定时支持多方法绑定 2020-03-11 10:10:00 +08:00
John
f3bd2b67f7 change attribute Context to context.Context for ghttp.Request 2020-03-10 20:45:22 +08:00
John
4732bf46ad add Context map for internal context workflow parameter exchanges for ghttp.Request 2020-03-08 22:53:20 +08:00
John
5bdf1a71b8 improve uploading file feature for ghttp.Server 2020-03-07 20:20:52 +08:00
John
a34ca0ff4b improve uploading file feature for ghttp.Server; improve package gfile/gstr/gdebug 2020-03-07 19:31:33 +08:00
John
93d0760898 add GetPage function for ghttp.Request 2020-03-06 11:01:03 +08:00
John
7072244420 improve comment for ghttp.Server 2020-03-05 16:08:55 +08:00
John
f68b66e606 update comment for ghttp.Server 2020-03-04 23:32:27 +08:00
John
4e7c6c1fb4 improve CORS feature for ghttp.Server 2020-03-04 22:52:56 +08:00
John
d8a7e36478 improve router feature for ghttp.Server 2020-03-04 17:29:23 +08:00
John
e58d7e8dda add internal log for gi18n; improve unit testing case for ghttp.Server 2020-02-28 23:00:05 +08:00
John
ef2a9f6fd1 fix issue in log paatern for ghttp.Server 2020-02-27 17:09:12 +08:00
John
7acf16fdba add UploadFile feature for ghttp.Server 2020-02-26 01:01:28 +08:00
John
a52b454d3e add UploadFile feature for ghttp.Server 2020-02-26 00:48:27 +08:00
John
42fd583bfd add more inernal logging points for core components 2020-02-24 21:09:19 +08:00
John
d8ef8a1f5d add gf.debug options and GF_DEBUG env control params for internal logging feature 2020-02-22 14:51:44 +08:00
John
f18312419b improve CORS feature for ghttp.Server 2020-02-16 23:18:37 +08:00
John
20b64507b1 improve string conversion for gtime.Time 2020-02-16 22:39:12 +08:00
John
52943b283c go.mod updates; add search path configuration in file for package ghttp.Server 2020-02-16 16:34:30 +08:00
John
5169137069 improve unit testing case for CORS feature for package ghttp 2020-02-16 13:32:06 +08:00
John
1736d271d2 add more unit testing case 2020-02-14 22:13:41 +08:00
John
78917ed5cb comment updates for package ghttp 2020-02-11 10:00:10 +08:00
John
88684ca00a add panic if internal watcher creation fails for gfsnotify; improve codes and change comment from chinese to english for gdb 2020-02-10 20:37:53 +08:00
John
83dcc4a5e0 fix issue for overwriting the route item if allowed 2020-02-08 11:17:09 +08:00
John
ac9be6134b add global schema access support for mssql in gdb 2020-02-07 17:21:05 +08:00
John
4c1b4f7858 change time measuing unit from microtime to millitime for ghttp.Request; change graceful reload feature from true to false in default 2020-02-07 16:29:14 +08:00
John
e8dd3979b6 add more unit testing cases for ghttp/gview 2020-02-06 15:17:10 +08:00
John
374ee4c0ea improve ghttp.Request for making the request body reusable for multiple times 2020-02-06 11:22:36 +08:00
John
95411aff77 improve ghttp.Request for making the request body reusable for multiple times 2020-02-06 11:14:38 +08:00
John
26aab44ec8 fix issue in char '-' support for parameter retrieving for ghttp.Request 2020-01-22 20:28:42 +08:00
John
2e10ce421b improve plugin feature 2020-01-21 22:18:49 +08:00
John
8eda69b11e improve the plugin feature for ghttp.Server 2020-01-21 17:18:03 +08:00
John
202419202f improve logger feautre, add unit testing cases for ghttp.Server; add SetDefaultLogger function for glog 2020-01-21 15:42:08 +08:00
John
01b06e0745 improve ghttp.BuildParams 2020-01-20 20:32:39 +08:00
John
7df53ff55e rename all timestamp function names from *Second to Timestamp* 2020-01-20 14:14:11 +08:00
John
f59a1ada88 improve static service feature, add plugin feature for ghttp.Server 2020-01-17 21:12:52 +08:00
John
b867b2a0bc add return parameter name for function Cas of gtype;improve Response.Redirect* functions by adding optional parameter code 2020-01-16 21:04:28 +08:00
John
872d674182 fix issue in database 'time' type support in package gdb 2020-01-15 21:23:40 +08:00
John
f662ff8051 add pprof unit testing case for ghttp; reame updates 2020-01-12 22:26:07 +08:00
John
f3a208f02f fix issue in router value retrieving for ghttp.Request 2020-01-08 20:00:42 +08:00
John
9227139cf8 add schema changing feature for gdb 2020-01-07 22:14:32 +08:00
John
f2190e50b2 improve unit testing for gdb 2020-01-06 20:43:59 +08:00
John
c4537b4753 improve ghttp.Client.Get 2020-01-06 17:57:07 +08:00
John
bec9f5a847 add buildin function 'concat' for gview 2020-01-05 19:55:17 +08:00
John
2bacc77224 improve JSON/XML parsing feature for ghttp.Request 2020-01-04 15:35:21 +08:00
John
27b677b0c0 improve Map converting feature for gconv; improve package gproc for local shell searching; improve JSON/XML response for ghttp.Response 2020-01-02 19:45:41 +08:00
John
821c71bd8d improve parameter parsing feature for ghttp.Request 2020-01-01 15:20:03 +08:00
John
604a10400d improve parameter parsing feature for ghttp.Request 2020-01-01 14:57:57 +08:00
John
9219471f67 improve parameter parsing feature for ghttp.Request 2020-01-01 14:26:00 +08:00
John
fe5d2e5685 improve parameter parsing feature for ghttp.Request 2020-01-01 14:18:00 +08:00
John
80c6ceaf26 fix issue 437 2019-12-25 21:22:06 +08:00
John
1d53d760d8 README/DONATOR update; improve ghttp 2019-12-19 15:38:34 +08:00
John
922e720d63 improve gdb/ghttp/gins; fix issue in gstr 2019-12-19 15:14:05 +08:00
John
18892fb66d add iterate example for glist; improve variable name for ghttp.Server 2019-12-18 19:37:07 +08:00
John
5f2be10563 improve gdb/gtime 2019-12-17 21:06:34 +08:00
John
458318d374 improve prefix and word quote feature for gdb; merge develop 2019-12-12 23:54:07 +08:00
John
87295ef1fe improve process communication feature for gproc; add more slice converting functions for gconv 2019-12-11 21:22:41 +08:00
John
34ef0ea792 add prefix feature for gdb 2019-12-10 21:14:15 +08:00
John
2804834540 rename GetRouterMap to GetRouterArray for ghttp.Server 2019-12-10 12:28:55 +08:00
John
add7dd5a45 merge develop 2019-12-09 23:22:49 +08:00
John
e40894ca45 add IsServiceHandler for ghttp.RouterItem 2019-12-09 23:19:39 +08:00
John
28825f5395 add gdebug.BuildInfo function; improving gproc 2019-12-09 21:53:44 +08:00
John
6ca5141020 some improving 2019-12-08 22:55:32 +08:00
John
f775479c3f fix issue in ghttp.Request.GetRequest* 2019-12-05 10:44:31 +08:00
John
e1d4ba9d23 add GetError function for ghttp.Request 2019-12-04 19:50:49 +08:00
John
6abe660287 export router map api for ghttp.Server; comment update for ghttp.Server 2019-12-04 13:55:08 +08:00
John
a06ca31530 improve middleware feature for ghttp.Server 2019-12-04 10:03:03 +08:00
John
890865251b improve routerMap handling for ghttp.Request 2019-12-03 17:16:52 +08:00
John
6af90cafee rename ghttp.Domain.AddBindMiddleware to BindMiddlewareDefault for ghttp 2019-12-02 23:05:05 +08:00
John
2e2363bb41 change routergroup parameter name 'g' to 'group' for unit testing cases of ghttp 2019-12-02 23:00:48 +08:00
John
108ced2b0b improve route priority handling for ghttp.Server 2019-12-02 21:26:12 +08:00
John
40570cdb03 change logger configuration name from 'logging' to 'logger' in gins 2019-12-02 19:55:45 +08:00
John
10451864e6 improve parameter handling for ghttp.Requset 2019-12-01 21:41:29 +08:00
John
55e2646367 comment update for ghttp.Server 2019-12-01 21:05:46 +08:00
John
c88839edb1 comment update for ghttp.ServerConfig 2019-12-01 14:24:56 +08:00
John
2a2cfc289c improve ghttp.Client 2019-12-01 14:07:36 +08:00
John
8bbeb186c2 add Exit feature for ghttp.Response 2019-11-30 20:41:53 +08:00
John
a5407e57d9 comment update for ghttp.Client 2019-11-30 10:24:19 +08:00
John
5c749e7762 improve parameters handling for ghttp.Request 2019-11-30 09:42:07 +08:00
John
b3fafc64f8 improve parameter handling for ghttp.Request 2019-11-29 22:02:19 +08:00
John
0cce858641 improve configuration feature for ghttp.Server/gview/glog 2019-11-28 23:19:37 +08:00
John
7e43aa6b9d improve parameter parsing for ghtto.Request; add configuration feature for gview 2019-11-28 11:18:09 +08:00
John
f4654bf446 fix comment issue in example codes for gmap 2019-11-27 23:19:07 +08:00
John
94ed0bf9c9 fix issue in ghttp.Request.GetView 2019-11-26 15:12:58 +08:00
John
22e3705d3e improve ghttp.GracefulServer; add more unit test case for ghttp.Server.Middleware 2019-11-26 14:56:05 +08:00
John
382356bc8d improve gerror for stack information; fix issue in gconv.String for nil *time.Time type 2019-11-21 21:49:00 +08:00
john
1deb3510f0 improve gerror, ghttp for error stack logging; improve custom view feature for ghttp.Request 2019-11-20 18:45:09 +08:00
john
ad540f7c25 update travis for adding mysql password; add custom view feature for ghttp.Response 2019-11-20 12:09:26 +08:00
John
43531c2680 improve glog for debug configuration; add GetInt*/GetUint* functions for ghttp.Request 2019-11-19 17:26:06 +08:00
John
635f5d36fd improve log feature of ghttp.Server; remove trace for Notice/Warning functions for glog 2019-11-15 22:50:31 +08:00
John
1becc4932c add more functions for gtcp; remove default domain set for cookie feature of ghttp.Server 2019-11-14 15:41:28 +08:00
John
8f2c62d444 improve logging feature for ghttp.Server 2019-11-08 19:52:49 +08:00
John
21efde1a38 fix issue in session feature of ghttp.Server 2019-11-08 09:06:01 +08:00
John
d8b6466ed0 fix issue in ghttp.Server 2019-11-07 21:02:24 +08:00
John
9da1277b47 improve session of file storage for ghttp.Server 2019-11-07 20:42:13 +08:00
John
a3fd0c9a4a improve session of file storage for ghttp.Server 2019-11-07 20:36:33 +08:00
John
ad7375b44b improve configuration feature for ghttp.Server 2019-11-07 16:40:34 +08:00
John
05120b585d improve configuration feature for glog/ghttp.Server 2019-11-07 11:32:25 +08:00
John
9e32d74c8c improve ConfigFromMap function for ghttp.Server 2019-11-06 20:23:41 +08:00
John
c492de4fa8 improve multipart form parsing for ghttp.Server 2019-11-06 15:37:29 +08:00
John
6308380541 update example for uploading files feature for ghttp.Server 2019-11-06 10:39:59 +08:00
John
2609db1aec improve file uploading feature for ghttp.Server 2019-11-05 19:47:35 +08:00
John
e30b2b0732 improve gsession/gmap/gtree 2019-11-04 21:26:16 +08:00
John
9416cd1274 add CopyMap function for gutil; improve ghttp.Request 2019-10-30 23:26:57 +08:00
John
8b5ab846b2 improve unit test case for gmutex 2019-10-30 23:01:24 +08:00
John
6f9bbbf416 add debug info for ghttp.Server 2019-10-29 20:15:13 +08:00
John
0dde8c735e add debug info for ghttp.Server 2019-10-29 19:59:24 +08:00
John
7225e49aa0 add package intlog for GF internal logging usage; improve redis storage feature for gsession 2019-10-29 16:45:42 +08:00
John
4791d10761 fix issue in hijack error for websocket of ghttp.Server 2019-10-28 17:01:08 +08:00
John
bc7b5c8626 fix issue in status checks for static file serving 2019-10-25 17:04:17 +08:00
John
f2b45622d6 add debug for domain group testing 2019-10-25 16:57:54 +08:00
John
77cb219057 enable route map printing for domain group testing 2019-10-25 16:44:54 +08:00
John
cf34d7bd56 fix issue in gconv.Interfaces; improve storage interface for gsession 2019-10-25 13:49:03 +08:00
John
28326606f5 fix issue in resource file handler for ghttp.Server 2019-10-24 20:22:37 +08:00
John
91c98bbb60 fix issue in group router feature for domain 2019-10-24 19:44:30 +08:00
John
500efb5601 fix issue in template for ghttp.Server 2019-10-17 20:31:03 +08:00
John
e1164e935b improve configuration for gdb; add more unit test case for ghttp.Server 2019-10-15 21:20:38 +08:00
John
2804183325 fix issue in content-type response for ghttp.Server 2019-10-14 13:46:16 +08:00
John
1736e71e6b add debug for unit test case of 2019-10-13 22:40:23 +08:00
John
76a9f4ca14 fix security issue in static file feature for ghttp.Server 2019-10-12 23:56:03 +08:00
John
c4e5679d5c fix issue in missing passing MaxIdle/MaxActive configuration to underlying redis pool for gredis; add extra output for unit test cases of ghttp.Server 2019-10-11 23:33:21 +08:00
John
5092d8e6c5 improve status handling and add error logger for ghttp.Server; fix issue in defer error warpping for some packages 2019-10-11 22:54:25 +08:00
John
74d625ff97 add Get*Int32/Get*Int64/Get*Uint32/Get*Uint64 functions for ghttp.Request 2019-10-10 10:40:38 +08:00
John
f1119e28e8 add Get*Int32/Get*Int64/Get*Uint32/Get*Uint64 functions for ghttp.Request 2019-10-10 10:33:14 +08:00