Get a request parameter key-value in fasthttp
问题 http://127.0.0.1:8080/x?haha=1 I want to get something like ctx.QueryArgs().Get("haha") is it possible in golang's fasthttp package? 回答1: Found it ctx.QueryArgs().Peek("haha") The naming choice is unexpected. 回答2: You can retrieve a custom GET, POST PUT parameter using FormValue method: - GET (Query String such as ?user=a&pass=b); - POST, PUT body Literally, from the documentation: FormValue returns form value associated with the given key. The value is searched in the following places: Query