id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_58_0.txt
Required, but never shown ### Post as a guest
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_20_0.txt
Modified 8 years, 11 months ago Viewed 978 times
Process_Threads/8_133_0.txt
This is useful if you want to pass some specific data to the next middleware. Signature
Process_Threads/Process_Threads_1_1.txt
processthreadsapi-setthreadselectedcpusets) function * [ **SetThreadSelectedCpuSetMasks** ](/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setthreadselectedcpusetmasks) function * [ **CPU_SET_INFORMATION_TYPE** ](cpu-set-information-type) enumeration * [ **SYSTEM_CPU_SET_INFORMATION** ](/en-us...
Process_Threads/8_129_0.txt
Joins the links followed by the property to populate the response’s Link HTTP header field. Signature
Process_Threads/8_92_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... ## GetRespHeader ​
Process_Threads/1581_46_0.txt
edited We use ` Locals ` , for more information please visit our documentation .
Process_Threads/8_197_0.txt
// GET http://example.com/?name=alex&wanna_cake=2&id= app.Get("/", func(c *fiber.Ctx) error { c.QueryInt("wanna_cake", 1) // 2 c.QueryInt("name", 1) // 1 c.QueryInt("id", 1) // 1 c.QueryInt("id") // 0 // ... ...
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_48_0.txt
– Andrew Parker Jun 9, 2015 at 9:49
Process_Threads/8_152_0.txt
info Defaults to empty string ( ` "" ` ), if the param doesn't exist.
Process_Threads/8_59_0.txt
Set cookie Signature
Process_Threads/25751_23_0.txt
Cancel Submit feedback # Saved searches
Process_Threads/1581_55_0.txt
Copy link ###
Process_Threads/25751_19_0.txt
Search or jump to... # Search code, repositories, users, issues, pull requests...
Process_Threads/8_119_0.txt
Signature func (c *Ctx) IsFromLocal() bool {
Process_Threads/1581_42_0.txt
### api/v1/manager.go package api func ManagerGet(c *fiber.Ctx) { claims, err := c.Get("claims") } --- The text was updated successfully, but these errors were encountered:
Process_Threads/8_61_0.txt
app.Get("/", func(c *fiber.Ctx) error { // Create cookie cookie := new(fiber.Cookie) cookie.Name = "john" cookie.Value = "doe" cookie.Expires = time.Now().Add(24 * time.Hour) // Set cookie c.Cookie(cookie) // ... }) ## C...
Process_Threads/8_78_0.txt
Example app.Post("/", func(c *fiber.Ctx) error { // Get first file from form field "document": file, err := c.FormFile("document") // Save file to root directory: return c.SaveFile(file, fmt.Sprintf("./%s", file.Filename)) })
Process_Threads/1581_67_0.txt
> We use ` Locals ` , for more information please visit our documentation . > > > func main() { > app := fiber.New() > app.Use("/api", func(c *fiber.Ctx) { > c.Locals("claims", claims) > c.Next() > }) > app.Get("/api/v1/manager", func(c *fiber.Ctx) { > claims :=...
Process_Threads/25751_101_0.txt
is the problem that the client cannot handle the characters or that the content that goes into the json methodic is not uft8? --- All reactions Sorry, something went wrong.
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_49_0.txt
Add a comment | ## Your Answer
Process_Threads/25751_115_0.txt
Fenny self-assigned this Feb 9, 2024 Fenny added the 🛠 In Progress label Feb 9, 2024
Process_Threads/8_142_0.txt
To access multipart form entries, you can parse the binary with ` MultipartForm() ` . This returns a ` map[string][]string ` , so given a key, the value will be a string slice. Signature
Process_Threads/8_43_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... ## BodyParser ​
Process_Threads/8_11_0.txt
Signature func (c *Ctx) Accepts(offers ...string) string func (c *Ctx) AcceptsCharsets(offers ...string) string func (c *Ctx) AcceptsEncodings(offers ...string) string func (c *Ctx) AcceptsLanguages(offers ...string) string
Process_Threads/1581_44_0.txt
Copy link Member
Process_Threads/8_106_0.txt
## IP ​ Returns the remote IP address of the request.
Process_Threads/25751_67_0.txt
In my limited usecase it actually is an option - thats why I did it. But once not just UTF-8 encoded strings are send, it is again broken. Also this is for JSON only and I in general would love to see a global implementation of encoding support. In general I would like to use encoding UTF8mb4 for the whole app, a...
Process_Threads/1581_34_0.txt
# 🤔 How do I Set/Get data in context? #158 Closed
Process_Threads/25751_74_0.txt
the-hotmann commented Sep 3, 2023 • edited
Process_Threads/8_51_0.txt
Web browsers and other compliant clients will only clear the cookie if the given options are identical to those when creating the cookie, excluding expires and maxAge. ClearCookie will not set these values for you - a technique similar to the one shown below should be used to ensure your cookie is deleted. Example
Process_Threads/8_225_0.txt
func (c *Ctx) ReqHeaderParser(out interface{}) error Example
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_43_0.txt
Share Follow
Process_Threads/8_16_0.txt
// Accept: text/plain;format=flowed;q=0.9, text/plain // i.e., "I prefer text/plain;format=flowed less than other forms of text/plain" app.Get("/", func(c *fiber.Ctx) error { // Beware: the order in which offers are listed matters. // Although the client specified they prefer n...
Process_Threads/Process_Threads_4_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/25751_121_0.txt
No branches or pull requests 5 participants
Process_Threads/8_176_0.txt
Example // GET http://example.com/?list_a=1&list_a=2&list_a=3&list_b[]=1&list_b[]=2&list_b[]=3&list_c=1,2,3 app.Get("/", func(c *fiber.Ctx) error { m := c.Queries() m["list_a"] // "3" m["list_b[]"] // "3" m["list_c"] // "1,2,3" })
Process_Threads/8_81_0.txt
Example app.Post("/", func(c *fiber.Ctx) error { // Get first value from form field "name": c.FormValue("name") // => "john" or "" if not exist // .. })
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_13_0.txt
3. Teams 4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Process_Threads/1581_59_0.txt
Copy link ###
Process_Threads/25751_94_0.txt
Copy link ###
Process_Threads/8_260_0.txt
## SendStatus ​ Sets the status code and the correct status message in the body, if the response body is empty .
Process_Threads/1581_32_0.txt
Sign up for GitHub By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.
Process_Threads/8_8_0.txt
On this page # 🧠 Ctx
Process_Threads/1581_80_0.txt
Assignees No one assigned
Process_Threads/8_103_0.txt
Returns the hostname derived from the Host HTTP header. Signature
Process_Threads/25751_123_0.txt
### Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information
Process_Threads/8_286_0.txt
UserContext returns a context implementation that was set by user earlier or returns a non-nil, empty context, if it was not set earlier. Signature
Process_Threads/25751_80_0.txt
Sorry, something went wrong. Copy link
Process_Threads/8_88_0.txt
func (c *Ctx) Get(key string, defaultValue ...string) string Example
Process_Threads/8_5_0.txt
* 📦 Fiber * 🚀 App * 🧠 Ctx * 📋 Constants * 🌎 Client * 📃 Log * 🧬 Middleware * Guide
Process_Threads/8_98_0.txt
Signature func (c *Ctx) GetRespHeaders() map[string][]string
Process_Threads/8_112_0.txt
Example // X-Forwarded-For: proxy1, 127.0.0.1, proxy3 app.Get("/", func(c *fiber.Ctx) error { c.IPs() // ["proxy1", "127.0.0.1", "proxy3"] // ... })
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_22_0.txt
There are no public Win APIs for providing a stack in either the Fiber or Thread APIs. I've searched around for sneaky backdoors, workarounds and hacks, there's nothing going. In fact, I looked that the winpthread source for inspiration and that ignores any stack provided to ` pthread_attr_setstack ` . Instead I tried...
Process_Threads/25751_5_0.txt
Find and fix vulnerabilities * Codespaces
Process_Threads/8_174_0.txt
Example // GET http://example.com/?name=alex&want_pizza=false&id= app.Get("/", func(c *fiber.Ctx) error { m := c.Queries() m["name"] // "alex" m["want_pizza"] // "false" m["id"] // "" // ... })
Process_Threads/Process_Threads_1_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/25751_29_0.txt
* * Notifications * Fork 1.6k * Star 31.5k * Code * Issues 80 * Pull requests 6 * Discussions * Actions * Projects 2 * Security * Insights
Process_Threads/8_239_0.txt
func (c *Ctx) SaveFile(fh *multipart.FileHeader, path string) error Example
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_45_0.txt
32.4k 9 9 gold badges 70 70 silver badges 105 105 bronze badges 2
Process_Threads/25751_36_0.txt
# 🐛 [Bug]: UTF8 not enabled by default #2575 the-hotmann opened this issue Aug 13, 2023 · 14 comments
Process_Threads/8_171_0.txt
Example // GET http://example.com app.Get("/", func(c *fiber.Ctx) error { c.Protocol() // "http" // ... })
Process_Threads/8_292_0.txt
app.Get("/", func(c *fiber.Ctx) error { c.Vary("Origin") // => Vary: Origin c.Vary("User-Agent") // => Vary: Origin, User-Agent // No duplicates c.Vary("Origin") // => Vary: Origin, User-Agent c.Vary("Accept-Encoding", "Accept") // => Vary:...
Process_Threads/8_290_0.txt
Multiple fields are allowed . Signature
Process_Threads/8_275_0.txt
## Status ​ Sets the HTTP status for the response.
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_24_0.txt
> Unhandled exception at 0xXXXXXXXX .... So my (vague) question is, does anyone have any insight as to how exceptions and a custom stack might not be playing nicely together? I appreciate that this is totally unsupported and can happily except nil response or "go away". In fact, I've pretty much decided that I need a ...
Process_Threads/8_274_0.txt
Signature func (c *Ctx) Stale() bool
Process_Threads/1581_21_0.txt
Search syntax tips # Provide feedback
Process_Threads/25751_92_0.txt
(the small ` ü ` works, the big one ` Ü ` not!? Also some special chars work, some not.) I printed the string prior sending, it shows this: ` { "text": "Überprüfe: »«Ø®" } ` Anyway, adding this: app.Use(func(c *fiber.Ctx) error { if c.Is("json") { c.Set(fiber.HeaderContentType, fiber.M...
Process_Threads/8_75_0.txt
Example app.Get("/", func(c *fiber.Ctx) error { // Accept: text/plain c.Format("Hello, World!") // => Hello, World! // Accept: text/html c.Format("Hello, World!") // => <p>Hello, World!</p> // Accept: application/json c.Format(...
Process_Threads/25751_17_0.txt
GitHub community articles Repositories
Process_Threads/8_135_0.txt
app.Use(func(c *fiber.Ctx) error { c.Locals("user", "admin") return c.Next() }) app.Get("/admin", func(c *fiber.Ctx) error { if c.Locals("user") == "admin" { return c.Status(fiber.StatusOK).SendString("Welcome, admin!") } return c.SendSt...
Process_Threads/8_278_0.txt
Example app.Get("/fiber", func(c *fiber.Ctx) error { c.Status(fiber.StatusOK) return nil } app.Get("/hello", func(c *fiber.Ctx) error { return c.Status(fiber.StatusBadRequest).SendString("Bad Request") } app.Get("/world", func(c *fiber.Ctx) er...
Process_Threads/8_130_0.txt
func (c *Ctx) Links(link ...string) Example
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_46_0.txt
* Thanks for the response. Very useful as this might be all I actually need to make things work (although I need to go away and experiment with a few things). Also, I didn't know there was a "supported" way to get the TIB. I was just querying the segment register fs in assembly to get the TIB and manually editing it!...
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_14_0.txt
##### Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most.
Process_Threads/1581_47_0.txt
func main() { app := fiber.New() app.Use("/api", func(c *fiber.Ctx) { c.Locals("claims", claims) c.Next() }) app.Get("/api/v1/manager", func(c *fiber.Ctx) { claims := c.Locals("claims") }) app.Listen(3000) } --- 👍 31 talgat-ruby,...
Process_Threads/8_211_0.txt
If not specified, status defaults to 302 Found . info
Process_Threads/25751_66_0.txt
edited > Question, why is using ` fiber.MIMEApplicationJSONCharsetUTF8 ` not a viable > option in your use-case when returning back to the user?
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_1_0.txt
1. About 2. Products 3. For Teams 1. Stack Overflow Public questions & answers 2. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers 3. Talent Build your employer brand 4. Advertising Reach developers & technologists worldwide 5. Labs The future...
Process_Threads/1581_37_0.txt
## Comments Copy link
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_57_0.txt
Name Email
Process_Threads/25751_24_0.txt
## Use saved searches to filter your results more quickly Name
Process_Threads/8_237_0.txt
func MyMiddleware() fiber.Handler { return func(c *fiber.Ctx) error { beforeNext := c.Route().Path // Will be '/' err := c.Next() afterNext := c.Route().Path // Will be '/hello/:name' return err } } ## SaveFile ​
Process_Threads/8_153_0.txt
Signature func (c *Ctx) Params(key string, defaultValue ...string) string
Process_Threads/8_60_0.txt
func (c *Ctx) Cookie(cookie *Cookie) type Cookie struct { Name string `json:"name"` Value string `json:"value"` Path string `json:"path"` Domain string `json:"domain"` MaxAge int `json:"m...
Process_Threads/8_250_0.txt
tip Use this if you don't need type assertion, recommended for faster performance.
Process_Threads/8_165_0.txt
Example // GET http://example.com/user/111 app.Get("/user/:id", func(c *fiber.Ctx) error { param := struct {ID uint `params:"id"`}{} c.ParamsParser(&param) // "{"id": 111}" // ... })
Process_Threads/8_46_0.txt
Example // Field names should start with an uppercase letter type Person struct { Name string `json:"name" xml:"name" form:"name"` Pass string `json:"pass" xml:"pass" form:"pass"` } app.Post("/", func(c *fiber.Ctx) error { p := new(Person) ...
Process_Threads/25751_57_0.txt
Open 3 tasks
Process_Threads/modifying-the-stack-on-windows-tib-and-exceptions6_6_0.txt
company blog 2. 3. Log in 4. Sign up
Process_Threads/25751_71_0.txt
> > Question, why is using ` fiber.MIMEApplicationJSONCharsetUTF8 ` not a > viable option in your use-case when returning back to the user? > > In my limited usecase it actually is an option - thats why I did it. But > once not just UTF-8 encoded strings are send, it is again broken. Also this > is for JSON only and I ...
Process_Threads/1581_33_0.txt
Already on GitHub? Sign in to your account Jump to bottom
Process_Threads/8_219_0.txt
Renders a view with data and sends a ` text/html ` response. By default ` Render ` uses the default Go Template engine . If you want to use another View engine, please take a look at our Template middleware . Signature
Process_Threads/8_146_0.txt
func (c *Ctx) Next() error Example
Process_Threads/Process_Threads_2_3.txt
queryumsthreadinformation) and [ **SetUmsThreadInformation** ](/en-us/windows/desktop/api/WinBase/nf-winbase-setumsthreadinformation) to retrieve and set information about a UMS worker thread. * To help prevent deadlocks, the UMS scheduler thread should not share locks with UMS worker threads. This includes both app...
Process_Threads/Process_Threads_0_1.txt
for each fiber. If no fiber switching occurs, FLS acts exactly the same as [ thread local storage ](thread-local-storage) . The FLS functions ( [ **FlsAlloc** ](/en-us/windows/win32/api/fibersapi/nf-fibersapi-flsalloc) , [ **FlsFree** ](/en-us/windows/win32/api/fibersapi/nf-fibersapi-flsfree) , [ **FlsGetValue** ](/en...
Process_Threads/1581_25_0.txt
Query To see all available qualifiers, see our documentation .
Process_Threads/25751_65_0.txt
### the-hotmann commented Aug 14, 2023 •
Process_Threads/8_160_0.txt
Defaults to the integer zero ( ` 0 ` ), if the param doesn't exist. Signature