Coder Social home page Coder Social logo

Bug - GET Params about quick HOT 7 CLOSED

jeffotoni avatar jeffotoni commented on September 18, 2024
Bug - GET Params

from quick.

Comments (7)

jeffotoni avatar jeffotoni commented on September 18, 2024 1

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.

jeffotoni avatar jeffotoni commented on September 18, 2024 1

image

from quick.

marcos-dev88 avatar marcos-dev88 commented on September 18, 2024

@jeffotoni, realizado o ajuste no PR Bug-09

from quick.

marcos-dev88 avatar marcos-dev88 commented on September 18, 2024

Vou verificar, assim que estiver concluído o ajuste mando o PR aqui novamente @jeffotoni .

from quick.

marcos-dev88 avatar marcos-dev88 commented on September 18, 2024

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.

marcos-dev88 avatar marcos-dev88 commented on September 18, 2024

Bug resolvido no PR Bug-9

from quick.

jeffotoni avatar jeffotoni commented on September 18, 2024

Continua bugado neste cenário

image

from quick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.