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

    Cookies Cookies Get cookie value by key, you could pass an optional default value that will be returned if the cookie key does not exist. Signatures func ( c * Ctx ) Coo...
  • Static files

    Static files Static files To serve static files such as images , CSS and JavaScript files, replace your function handler with a file or directory string. Function signature:...
  • Write

    394 2020-09-14 《Fiber v2.0 Document》
    Write Write Write adopts the Writer interface func ( c * Ctx ) Write ( p [] byte ) ( n int , err error ) app . Get ( "/" , func ( c * fiber . Ctx ) error { ...
  • Write

    Write Write Write adopts the Writer interface func ( c * Ctx ) Write ( p [] byte ) ( n int , err error ) app . Get ( "/" , func ( c * fiber . Ctx ) error { ...
  • Route

    Route Route Returns the matched Route struct. c . Route () * Route // http://localhost:8080/hello handler := func ( c * fiber . Ctx ) { r := c . Route ...
  • OriginalURL

    OriginalURL OriginalURL Returns the original request URL. func ( c * Ctx ) OriginalURL () string // GET http://example.com/search?q=something app . Get ( "/" ...
  • Hostname

    349 2020-09-14 《Fiber v2.0 Document》
    Hostname Hostname Returns the hostname derived from the Host HTTP header. func ( c * Ctx ) Hostname () string // GET http://google.com/search app . Get ( "/" ...
  • FormValue

    401 2020-09-14 《Fiber v2.0 Document》
    FormValue FormValue Any form values can be retrieved by name, the first value from the given key is returned. func ( c * Ctx ) FormValue ( key string , defaultValue ....
  • Format

    Format Format Performs content-negotiation on the Accept HTTP header. It uses Accepts to select a proper format. If the header is not specified or there is no proper form...
  • Attachment

    346 2020-09-14 《Fiber v2.0 Document》
    Attachment Attachment Sets the HTTP response Content-Disposition header field to attachment . func ( c * Ctx ) Attachment ( filename ... string ) app . Get ( "/" ,...