Comments (7)
app := quick.New() app.Get("/v1/customer/:param1/:param2/product/:param3", QuickHandler) app.Get("/v1/customer/:param1/:param2/product/:param3/path1/:param4/path2/:param5", QuickHandler)
curl -i -XGET 'localhost:8080/v1/customer/val1/val2/product/val3'
curl -i -XGET 'localhost:8080/v1/customer/val1/val2/product/val3/path1/val4/path2/val5'
from quick.
from quick.
@jeffotoni, realizado o ajuste no PR Bug-09
from quick.
Vou verificar, assim que estiver concluído o ajuste mando o PR aqui novamente @jeffotoni .
from quick.
Boa noite @jeffotoni , realizado o ajuste, segue as evidências:
path apenas '/'
`curl -vi -XGET 'http://localhost:8080/val1/val2/val3/some'
Note: Unnecessary use of -X or --request, GET is already inferred.
- Trying 127.0.0.1:8080...
- Connected to localhost (127.0.0.1) port 8080 (#0)
GET /val1/val2/val3/some HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.87.0
Accept: /
- Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Content-Type: application/json
Content-Type: application/json
< Date: Sat, 25 Feb 2023 01:52:20 GMT
Date: Sat, 25 Feb 2023 01:52:20 GMT
< Content-Length: 0
Content-Length: 0
<
- Connection #0 to host localhost left intact`
Apenas com o path
`$ curl -vi -XGET 'http://localhost:8080/some'
Note: Unnecessary use of -X or --request, GET is already inferred.
- Trying 127.0.0.1:8080...
- Connected to localhost (127.0.0.1) port 8080 (#0)
GET /some HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.87.0
Accept: /
- Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Content-Type: application/json
Content-Type: application/json
< Date: Sat, 25 Feb 2023 01:51:42 GMT
Date: Sat, 25 Feb 2023 01:51:42 GMT
< Content-Length: 0
Content-Length: 0
<
- Connection #0 to host localhost left intact`
funcionamento com query streing:
`curl -vi -XGET 'http://localhost:8080/some?val=1'
Note: Unnecessary use of -X or --request, GET is already inferred.
- Trying 127.0.0.1:8080...
- Connected to localhost (127.0.0.1) port 8080 (#0)
GET /some?val=1 HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.87.0
Accept: /
- Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Content-Type: application/json
Content-Type: application/json
< Date: Sat, 25 Feb 2023 02:08:39 GMT
Date: Sat, 25 Feb 2023 02:08:39 GMT
< Content-Length: 0
Content-Length: 0
<
- Connection #0 to host localhost left intact`
from quick.
Bug resolvido no PR Bug-9
from quick.
Continua bugado neste cenário
from quick.
Related Issues (20)
- Improvement - Improve tests in GET and POST requests HOT 4
- Feature - Regex in param route HOT 1
- Update unit tests HOT 2
- Create QuickTestCtx HOT 1
- Error em Group ele tem que retornar o grupo HOT 2
- Tests usando Goroutines error HOT 2
- Cors HOT 1
- Atualizações no Body, Bind e Response - CORREÇÃO para executar na chamada do MÉTODO HOT 1
- Função/Método Static - hospedar páginas staticas
- Post com Multipart FormData - receber POST E UPLOADS
- CORS - BUG INTEGRAÇÃO
- Benchmarking - Quick
- Separação dos files, organização da arquitetura HOT 1
- k6 para test de stress
- Criar retorno nas funções error - handlers (c *quick.Ctx) error HOT 1
- Bug - Bind XML is not working properly
- Improve - Create test case using Use() function
- Desenvolvimento middleware JWT
- Não está pegando os parametros como values para HOT 2
- Problem to compress gzip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quick.