id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
Process_Threads/8_14_0.txt
Media-Type parameters are supported. Example 3
Process_Threads/1581_57_0.txt
func main() { app := fiber.New() app.Use("/api", func(c *fiber.Ctx) { c.Locals("claims", claims) --> how can we reach claims in here c.Next() }) app.Get("/api/v1/manager", func(c *fiber.Ctx) { claims := c.Locals("claims") }) app.Listen(3000) ...
Process_Threads/8_147_0.txt
app.Get("/", func(c *fiber.Ctx) error { fmt.Println("1st route!") return c.Next() }) app.Get("*", func(c *fiber.Ctx) error { fmt.Println("2nd route!") return c.Next() }) app.Get("/", func(c *fiber.Ctx) error { fmt.Println("3rd r...
Process_Threads/8_65_0.txt
Get cookie value by key, you could pass an optional default value that will be returned if the cookie key does not exist. Signature
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_42_0.txt
Both exceptions and ` printf ` work for me, and I don't see why they shouldn't. If you post your code, we can try to pinpoint what's going on. #include <windows.h> #include <stdio.h> DWORD CALLBACK ThreadProc(LPVOID) { try { throw 1; } catch (i...
Process_Threads/1581_50_0.txt
thomasvvugt mentioned this issue May 1, 2020 🔥 Pass data to next handler. #332
Process_Threads/8_156_0.txt
// ROUTE: /v1/*/shop/* // GET: /v1/brand/4/shop/blue/xs c.Params("*1") // "brand/4" c.Params("*2") // "blue/xs" For reasons of downward compatibility , the first parameter segment for the parameter character can also be accessed without the counter.
Process_Threads/1581_11_0.txt
* All features * Documentation * GitHub Skills * Blog * Solutions
Process_Threads/25751_54_0.txt
could (or maybe is) the default. The ` Encoding ` in the config should therefore just add the Encoding, and not overwrite the whole mimetype. I dont know if that is possible. But maybe something like this. app.Use(func(c *fiber.Ctx) error { c.Set(fiber.Encoding, fiber.utf-8mb4) return c.Nex...
Process_Threads/25751_108_0.txt
This should be configurable Fiber wise. At least with python I always have to set the Python Encoding to utf-8 to get data to display correctly. --- All reactions Sorry, something went wrong.
Process_Threads/25751_70_0.txt
edited https://www.rfc-editor.org/rfc/rfc8259
Process_Threads/8_110_0.txt
## IPs ​ Returns an array of IP addresses specified in the X-Forwarded-For request header.
Process_Threads/8_44_0.txt
Binds the request body to a struct. It is important to specify the correct struct tag based on the content type to be parsed. For example, if you want to parse a JSON body with a field called Pass, you would use a struct field of ` json:"pass" ` .
Process_Threads/1581_38_0.txt
### hyingreborn commented Feb 20, 2020 •
Process_Threads/8_183_0.txt
> Returned value is only valid within the handler. Do not store any > references. > Make copies or use the ` Immutable ` setting instead. Read more... ## QueryBool ​
Process_Threads/8_247_0.txt
Sets the HTTP response body. Signature
Process_Threads/25751_116_0.txt
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment Assignees
Process_Threads/8_141_0.txt
app.Post("/", func(c *fiber.Ctx) error { c.Method() // "POST" c.Method("GET") c.Method() // GET // ... }) ## MultipartForm ​
Process_Threads/25751_4_0.txt
Host and manage packages * Security
Process_Threads/1581_19_0.txt
Search or jump to... # Search code, repositories, users, issues, pull requests...
Process_Threads/8_181_0.txt
Signature func (c *Ctx) Query(key string, defaultValue ...string) string
Process_Threads/25751_124_0.txt
You can’t perform that action at this time.
Process_Threads/25751_109_0.txt
Copy link Contributor Author
Process_Threads/25751_120_0.txt
No milestone Development
Process_Threads/1581_69_0.txt
Member ###
Process_Threads/8_154_0.txt
Example // GET http://example.com/user/fenny app.Get("/user/:name", func(c *fiber.Ctx) error { c.Params("name") // "fenny" // ... }) // GET http://example.com/user/fenny/123 app.Get("/user/*", func(c *fiber.Ctx) error { c.Params("*") // "fenn...
Process_Threads/25751_104_0.txt
Tbh, I dont know anymore. A month ago or so I deleted the whole application. I will close this for now, but I will do some re-testing once there is an early version of ` v3 ` available. --- All reactions Sorry, something went wrong.
Process_Threads/8_226_0.txt
// Field names should start with an uppercase letter type Person struct { Name string `reqHeader:"name"` Pass string `reqHeader:"pass"` Products []string `reqHeader:"products"` } app.Get("/", func(c *fiber.Ctx) error { ...
Process_Threads/Process_Threads_0_0.txt
Skip to main content This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. [ Download Microsoft Edge ](https://go.microsoft.com/fwlink/p/?LinkID=2092881 ) [ More info about Internet Explorer and Microsoft Edge ](https://learn...
Process_Threads/8_96_0.txt
app.Get("/", func(c *fiber.Ctx) error { c.GetRespHeader("X-Request-Id") // "8d7ad5e3-aaf3-450b-a241-2beb887efd54" c.GetRespHeader("Content-Type") // "text/plain" c.GetRespHeader("something", "john") // "john" // .. }) > Returned value is only vali...
Process_Threads/25751_51_0.txt
Contributor Author ###
Process_Threads/1581_10_0.txt
Collaborate outside of code Explore
Process_Threads/8_124_0.txt
Example type SomeStruct struct { Name string Age uint8 } app.Get("/json", func(c *fiber.Ctx) error { // Create data struct: data := SomeStruct{ Name: "Grame", Age: 20, } return c.JSON(data) // => Conte...
Process_Threads/8_94_0.txt
The match is case-insensitive . Signature
Process_Threads/8_300_0.txt
func (c *Ctx) WriteString(s string) (n int, err error) Example
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_41_0.txt
Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 2
Process_Threads/8_198_0.txt
This method is similar to BodyParser , but for query parameters. It is important to use the struct tag "query". For example, if you want to parse a query parameter with a field called Pass, you would use a struct field of ` query:"pass" ` . Signature
Process_Threads/8_280_0.txt
The application property subdomain offset, which defaults to ` 2 ` , is used for determining the beginning of the subdomain segments. Signature
Process_Threads/8_251_0.txt
Signature func (c *Ctx) SendString(body string) error func (c *Ctx) SendStream(stream io.Reader, size ...int) error
Process_Threads/1581_26_0.txt
Cancel Create saved search Sign in
Process_Threads/1581_36_0.txt
# 🤔 How do I Set/Get data in context? #158 hyingreborn opened this issue Feb 20, 2020 · 7 comments
Process_Threads/8_213_0.txt
func (c *Ctx) RedirectToRoute(routeName string, params fiber.Map, status ...int) error Example
Process_Threads/8_158_0.txt
> Returned value is only valid within the handler. Do not store any > references. > Make copies or use the ` Immutable ` setting instead. Read more... ## ParamsInt ​
Process_Threads/8_38_0.txt
func (c *Ctx) BodyRaw() []byte Example
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_59_0.txt
Name Email
Process_Threads/1581_24_0.txt
## Use saved searches to filter your results more quickly Name
Process_Threads/8_89_0.txt
app.Get("/", func(c *fiber.Ctx) error { c.Get("Content-Type") // "text/plain" c.Get("CoNtEnT-TypE") // "text/plain" c.Get("something", "john") // "john" // .. }) > Returned value is only valid within the handler. Do not store any > references. >...
Process_Threads/8_179_0.txt
## Query ​ This property is an object containing a property for each query string parameter in the route, you could pass an optional default value that will be returned if the query key does not exist.
Process_Threads/8_79_0.txt
## FormValue ​ Any form values can be retrieved by name, the first value from the given key is returned.
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_35_0.txt
* Have you looked at boost.org/doc/libs/1_58_0/libs/context/doc/html/context/… ? – avakar
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_52_0.txt
* Asking for help, clarification, or responding to other answers. * Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers .
Process_Threads/8_178_0.txt
Example // GET /api/posts?tags=apple,orange,banana&filters[tags]=apple,orange,banana&filters[category][name]=fruits&filters.tags=apple,orange,banana&filters.category.name=fruits app.Get("/", func(c *fiber.Ctx) error { m := c.Queries() m["tags"] // apple,orange,banana m["...
Process_Threads/1581_77_0.txt
func (c *DefaultCtx) Locals(key any, value ...any) any { if len(value) == 0 { return c.fasthttp.UserValue(key) } c.fasthttp.SetUserValue(key, value[0]) return value[0] } hope that helps. --- 👍 1 levniko reacted with thumbs up emoji
Process_Threads/8_196_0.txt
func (c *Ctx) QueryInt(key string, defaultValue ...int) int Example
Process_Threads/8_221_0.txt
Request return the *fasthttp.Request pointer Signature
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_10_0.txt
8. Discussions 9. Collectives
Process_Threads/8_49_0.txt
func (c *Ctx) ClearCookie(key ...string) Example
Process_Threads/8_234_0.txt
func (c *Ctx) Route() *Route Example
Process_Threads/8_39_0.txt
// curl -X POST http://localhost:8080 -d user=john app.Post("/", func(c *fiber.Ctx) error { // Get raw body from POST request: return c.Send(c.BodyRaw()) // []byte("user=john") }) > Returned value is only valid within the handler. Do not store any > references. ...
Process_Threads/25751_75_0.txt
Ah glad they recommend it aswell. I don't know all the functions in which it needs to be adjusted, but let me give you another explanation of the problem, maybe that solves the question. The flow is like this: | TYPE | INPUT (JSON) | STORAGE (DB) | RENDER (JSON) ---|---|---|--- default | ` Mädchen ` | ...
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_62_0.txt
Not the answer you're looking for? Browse other questions tagged * c++ * windows * multithreading * exception * fibers
Process_Threads/1581_40_0.txt
### main.go package main func main() { app := fiber.New() app.Use("/api", midlleware.JwtAuth) app.Get("/api/v1/manager", api.ManagerGet) }
Process_Threads/8_199_0.txt
func (c *Ctx) QueryParser(out interface{}) error Example
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_23_0.txt
(In a real world case I would setup the stack better than this and change EIP as well so that this step behaves more like the posix funciton ` swapcontext ` , but you get the idea). If I make any OS calls when on this different stack then I'm pretty much screwed ( ` printf ` for example dies). However this isn't an is...
Process_Threads/8_4_0.txt
* 🚀 Fiber * 🧬 Contrib * 📦 Storage * 📄️ Template * 👋 Welcome * API
Process_Threads/8_63_0.txt
func (c *Ctx) CookieParser(out interface{}) error Example
Process_Threads/8_104_0.txt
func (c *Ctx) Hostname() string Example
Process_Threads/8_185_0.txt
Please note if that parameter is not in the request, false will be returned. If the parameter is not a boolean, it is still tried to be converted and usually returned as false. Signature
Process_Threads/25751_102_0.txt
Copy link Contributor Author
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_67_0.txt
Stack unwinding in case of structured exceptions 3
Process_Threads/8_186_0.txt
func (c *Ctx) QueryBool(key string, defaultValue ...bool) bool Example
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_27_0.txt
namespace { HANDLE ghSemaphore = 0; void foo() { try { throw 6; } catch(...){} ExitThread(0); } void modifyThreadContext(HANDLE thread) { typedef NTSTATUS WINAPI NtQueryInformationThread_t(HANDLE ThreadH...
Process_Threads/1581_39_0.txt
edited Question description I want save the user information in JWT middleware and get it in the routing handler Code snippet (optional) In gin,i'll do it like this:
Process_Threads/8_48_0.txt
Expire a client cookie ( or all cookies if left empty) Signature
Process_Threads/25751_107_0.txt
### gaby commented Nov 22, 2023
Process_Threads/Process_Threads_3_1.txt
ft.com/legal/intellectualproperty/Trademarks/) * © Microsoft 2024
Process_Threads/8_132_0.txt
A method that stores variables scoped to the request and, therefore, are available only to the routes that match the request. tip
Process_Threads/25751_97_0.txt
Results on the "/" endpoint: Expected: ` {"symbols":"₹£€$₩¥"} ` Chrome/cURL ` {"symbols":"₹£€$₩¥"} ` Safari: ` {"symbols":"₹£€$â‚©Â¥"} ` Results on the "/utf8" endpoint: * Receives expected on all endpoints * ` {"symbols":"₹£€$₩¥"} `
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_79_0.txt
Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Process_Threads/8_150_0.txt
// GET http://example.com/search?q=something app.Get("/", func(c *fiber.Ctx) error { c.OriginalURL() // "/search?q=something" // ... }) > Returned value is only valid within the handler. Do not store any > references. > Make copies or use the ` Immutab...
Process_Threads/8_299_0.txt
WriteString adopts the string Signature
Process_Threads/25751_83_0.txt
All reactions * 👍 1 reaction
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_31_0.txt
1,445 2 2 gold badges 21 21 silver badges 28 28 bronze badges 5
Process_Threads/8_54_0.txt
func (c *Ctx) ClientHelloInfo() *tls.ClientHelloInfo Example
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_15_0.txt
Learn more about Collectives Teams
Process_Threads/8_42_0.txt
Example // echo 'user=john' | gzip | curl -v -i --data-binary @- -H "Content-Encoding: gzip" http://localhost:8080 app.Post("/", func(c *fiber.Ctx) error { // Decompress body from POST request based on the Content-Encoding and return the raw content: return c.Send(c.Body()) /...
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_16_0.txt
Q&A for work Connect and share knowledge within a single location that is structured and easy to search.
Process_Threads/8_195_0.txt
Defaults to the integer zero ( ` 0 ` ), if the param doesn't exist. Signature
Process_Threads/25751_106_0.txt
Copy link Member
Process_Threads/8_107_0.txt
Signature func (c *Ctx) IP() string
Process_Threads/25751_72_0.txt
Sorry, something went wrong. Copy link
Process_Threads/25751_48_0.txt
app.Use(func(c *fiber.Ctx) error { if c.Is("json") { c.Set(fiber.HeaderContentType, fiber.MIMEApplicationJSONCharsetUTF8) } return c.Next() }) ### Checklist: - [X] I agree to follow Fiber's [Code of Conduct](https://github.com/gofiber/fiber/blob/master/...
Process_Threads/1581_8_0.txt
Manage code changes * Issues
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_12_0.txt
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Create a free Team
Process_Threads/1581_35_0.txt
hyingreborn opened this issue Feb 20, 2020 · 7 comments Closed
Process_Threads/8_289_0.txt
Adds the given header field to the Vary response header. This will append the header, if not already listed, otherwise leaves it listed in the current location. info
Process_Threads/25751_100_0.txt
### ReneWerner87 commented Nov 5, 2023
Process_Threads/8_210_0.txt
Redirects to the specific route along with the parameters and with specified status, a positive integer that corresponds to an HTTP status code. info
Process_Threads/1581_48_0.txt
* 👍 31 reactions * 🎉 3 reactions * ❤️ 7 reactions * 🚀 4 reactions Sorry, something went wrong.
Process_Threads/8_15_0.txt
// Accept: text/plain, application/json; version=1; foo=bar app.Get("/", func(c *fiber.Ctx) error { // Extra parameters in the accept are ignored c.Accepts("text/plain;format=flowed") // "text/plain;format=flowed" // An offer must contain all parameters presen...