Comments (6)
是的暂不支持,这个地方是需要改进一下
from fasthttpapi.
可以引用新版本1.5.3.2
[Get(Route = "medias/{mediaid}")]
public object GetMedias(string mediaid)
from fasthttpapi.
谢谢,路由可以配置。还有三个问题想咨询下
1、我通过配置路由post方式上传文件后返回值返回的路径为"Url": "/uploadmedias", 这个值是否可以设置为路由一致
{
"Url": "/uploadmedias",
"Error": null,
"Code": 200,
"StackTrace": null,
"Data": [
],
"ID": null
}
2、通过设置路由名的方式传参带不了特殊符号,比如/medias/2019062415000810009679.png路由不到对应的方法,必须使用?传参才行
3、通过示例上传文件,好像是操作3M左右的文件就上传不了,是否是在哪里配置文件上传大小。
from fasthttpapi.
对于返回的内容可以定义Result,后缀名的url会认为是文件请求,http body是有大小限制(需配置)
详细可查看文档
http://ikende.com/doc/
from fasthttpapi.
请问
1、是否可以在路由上设置多个参数值而不是使用问号
[Get(Route = "login/{appKey}/{userName}/{password}")]
[SkipFilter(typeof(GlobalFilter))]
public object Login(string appKey, string userName, string password)
2、是否可选择只开启ssl安全连接
from fasthttpapi.
多个参数不支持/
分隔,因为这是路径字符。
暂不支持只开启ssl.
from fasthttpapi.
Related Issues (20)
- 请问支持UnixSocket吗? HOT 6
- 关于注入问题的疑问 HOT 2
- 如何禁止ServerController? HOT 2
- Options 选项 AllowCredentials 无法设置 HOT 4
- context.Response.SameSite = None 请求无效 HOT 5
- 请问这类错误怎么排查: <send data completed error> HOT 1
- 大佬,为什么接收消息之后,buffer不释放 HOT 3
- 大佬,为什么配置了https之后,服务器返回的是403
- 可以更新到net core 7吗?
- 升级到net6或者net7 HOT 1
- Upload File Problem!
- CROS an Cookie Problem HOT 2
- WebSocket连接时能否传递参数
- 高版本不再开源了对吧?
- 我自定义了DataConvertAttribute 但并没有走。还是走的jsonDataConvert
- Wpf应用中集成FastHttpApi会导致Wpf弹窗问题,找不到xxx.resources.dll
- Accessing HttpRequest without route/map
- after update beetlex cannot run program with release mode HOT 1
- 有计划支持net core 8 吗
- how to add brotli compression ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fasthttpapi.