Giter Club home page Giter Club logo

Comments (9)

tsegismont avatar tsegismont commented on June 23, 2024

With UriTemplate you can get an absolute URI that is properly encoded:

String absoluteURI = UriTemplate.of("{scheme}://{host}:{port}/{path}")
      .expandToString(Variables.variables()
        .set("scheme", "http")
        .set("host", "127.0.0.1")
        .set("port", 8881)
        .set("path", "привет"));

But on the server side encoded path segments are not supported anyway. Would you like to contribute this?

from vertx-web.

lasteris avatar lasteris commented on June 23, 2024

With UriTemplate you can get an absolute URI that is properly encoded:

      .expandToString(Variables.variables()
        .set("scheme", "http")
        .set("host", "127.0.0.1")
        .set("port", 8881)
        .set("path", "привет"));

But on the server side encoded path segments are not supported anyway. Would you like to contribute this?

that sounds like an interesting idea🤗

from vertx-web.

vietj avatar vietj commented on June 23, 2024

yeah that's what URI template are made for

from vertx-web.

lasteris avatar lasteris commented on June 23, 2024

yeah that's what URI template are made for

can I really give it a try to implement decoding path segments at the server side ?

from vertx-web.

vietj avatar vietj commented on June 23, 2024

I'm not sure what you want to do since we are talking here about web client and not server

from vertx-web.

vietj avatar vietj commented on June 23, 2024

ah you mean Thomas suggestion

from vertx-web.

lasteris avatar lasteris commented on June 23, 2024

ah you mean Thomas suggestion

yeah, honestly i thought about server support from the start, because if webclient does not encode, why should the server have logic for decoding (cause it all in one ecosystem) ?
and now sounds interesting, maybe i could find the "path segments" resolving logic on server side and try out to implement decoding

from vertx-web.

lasteris avatar lasteris commented on June 23, 2024

and by webclient side i am not sure that it should be implemented, because I think that on client side that's not a problem in any case if we have UriTemplate or UrlEncoder

from vertx-web.

vietj avatar vietj commented on June 23, 2024

sure, I'll close this issue in the meantime then

from vertx-web.

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.