Coder Social home page Coder Social logo

Comments (6)

beetlex-io avatar beetlex-io commented on June 3, 2024

是的暂不支持,这个地方是需要改进一下

from fasthttpapi.

beetlex-io avatar beetlex-io commented on June 3, 2024

可以引用新版本1.5.3.2

[Get(Route = "medias/{mediaid}")]
public object GetMedias(string mediaid)

from fasthttpapi.

lvrongwu avatar lvrongwu commented on June 3, 2024

谢谢,路由可以配置。还有三个问题想咨询下
1、我通过配置路由post方式上传文件后返回值返回的路径为"Url": "/uploadmedias", 这个值是否可以设置为路由一致
{
"Url": "/uploadmedias",
"Error": null,
"Code": 200,
"StackTrace": null,
"Data": [
],
"ID": null
}

2、通过设置路由名的方式传参带不了特殊符号,比如/medias/2019062415000810009679.png路由不到对应的方法,必须使用?传参才行

3、通过示例上传文件,好像是操作3M左右的文件就上传不了,是否是在哪里配置文件上传大小。

from fasthttpapi.

beetlex-io avatar beetlex-io commented on June 3, 2024

对于返回的内容可以定义Result,后缀名的url会认为是文件请求,http body是有大小限制(需配置)
详细可查看文档
http://ikende.com/doc/

from fasthttpapi.

lvrongwu avatar lvrongwu commented on June 3, 2024

请问
1、是否可以在路由上设置多个参数值而不是使用问号
[Get(Route = "login/{appKey}/{userName}/{password}")]
[SkipFilter(typeof(GlobalFilter))]
public object Login(string appKey, string userName, string password)
2、是否可选择只开启ssl安全连接

from fasthttpapi.

beetlex-io avatar beetlex-io commented on June 3, 2024

多个参数不支持/分隔,因为这是路径字符。
暂不支持只开启ssl.

from fasthttpapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.