/
githubmirror
/
GoFrame
Обзор
Документация
Войти
/
githubmirror
/
GoFrame
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
net/ghttp/ghttp_server_config_mess.go
38 строк
1 KB
John Guo
add build-in swagger ui support for ghttp.Server
02 окт 2021, 19:22
02 окт 2021, 19:22
322f593
Код
Авторство
О чём код?
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. package ghttp // SetNameToUriType sets the NameToUriType for server. func (s *Server) SetNameToUriType(t int) { s.config.NameToUriType = t } // SetDumpRouterMap sets the DumpRouterMap for server. // If DumpRouterMap is enabled, it automatically dumps the route map when server starts. func (s *Server) SetDumpRouterMap(enabled bool) { s.config.DumpRouterMap = enabled } // SetClientMaxBodySize sets the ClientMaxBodySize for server. func (s *Server) SetClientMaxBodySize(maxSize int64) { s.config.ClientMaxBodySize = maxSize } // SetFormParsingMemory sets the FormParsingMemory for server. func (s *Server) SetFormParsingMemory(maxMemory int64) { s.config.FormParsingMemory = maxMemory } // SetSwaggerPath sets the SwaggerPath for server. func (s *Server) SetSwaggerPath(path string) { s.config.SwaggerPath = path } // SetOpenApiPath sets the OpenApiPath for server. func (s *Server) SetOpenApiPath(path string) { s.config.OpenApiPath = path }