书栈网 · BookStack 本次搜索耗时 0.008 秒,为您找到 642 个相关结果.
  • SaveFile

    369 2020-09-14 《Fiber v2.0 Document》
    SaveFile SaveFile Method is used to save any multipart file to disk. func ( c * Ctx ) SaveFile ( fh * multipart . FileHeader , path string ) error app . Post ( ...
  • ParamsInt

    ParamsInt ParamsInt Method can be used to get an integer from the route parameters. Please note if that parameter is not in the request, zero will be returned. If the parameter...
  • Request

    Request Request Request return the *fasthttp.Request pointer Signature func ( c * Ctx ) Request () * fasthttp . Request Example app . Get ( "/" , func ( c *...
  • Cookies

    Cookies Cookies Get cookie value by key. Signature s c . Cookies ( key string ) string app . Get ( "/" , func ( c * fiber . Ctx ) { // Get cookie by key: c...
  • Protocol

    Protocol Protocol Contains the request protocol string: http or https for TLS requests. c . Protocol () string // GET http://example.com app . Get ( "/" , func...
  • BaseURL

    BaseURL BaseURL Returns the base URL (protocol + host ) as a string . c . BaseURL () string // GET https://example.com/page#chapter-1 app . Get ( "/" , func ( c ...
  • Protocol

    338 2020-09-14 《Fiber v2.0 Document》
    Protocol Protocol Contains the request protocol string: http or https for TLS requests. func ( c * Ctx ) Protocol () string // GET http://example.com app . ...
  • QueryParser

    QueryParser QueryParser This method is similar to BodyParser , but for query parameters. func ( c * Ctx ) QueryParser ( out interface {}) error // Field names sh...
  • JSONP

    JSONP JSONP Sends a JSON response with JSONP support. This method is identical to JSON , except that it opts-in to JSONP callback support. By default, the callback name is simp...
  • QueryParser

    QueryParser QueryParser This method is similar to BodyParser , but for query parameters. c . QueryParser ( out interface {}) error // Field names should start with an...