Giter Site home page Giter Site logo

Comments (7)

seanmonstar avatar seanmonstar commented on April 28, 2024 1

I've fixed this on master again, sorry for the bugs!

from hyper.

seanmonstar avatar seanmonstar commented on April 28, 2024

If that gets merged into a rust-url, I'd be happy to use it. Until then, I'll just submit a fix to unblock you (or anyone else) right now.

from hyper.

gtolle avatar gtolle commented on April 28, 2024

Awesome! Thanks much.

from hyper.

gtolle avatar gtolle commented on April 28, 2024

Also, I thought I'd share the project I'm working on - would love to hear your feedback.

It's a high-level REST API client in Rust, inspired by Ruby's rest-client. I'm going for the smallest amount of code to make the most common types of REST API calls. It depends heavily on Hyper, of course.

https://github.com/gtolle/rest_client

It does work, but it's my first piece of Rust code and there are probably tons of things I could be doing better.

from hyper.

adwhit avatar adwhit commented on April 28, 2024

This issue has resurfaced, possibly due to the changes in rust-url 1.0.

servo/rust-url#176

serialize_without_fragment is now &url[..Position::AfterQuery]

from hyper.

matt2xu avatar matt2xu commented on April 28, 2024

Yep, I just witnessed the same thing. I'm under the impression that the problem is there:
https://github.com/hyperium/hyper/blob/master/src/client/mod.rs#L303

There is no mention of query anymore (or fragment for that matter). Maybe a simpler way would be to call url.set_host(None) to remove the host and port, and then url.into_string(), so everything else (path, query, fragment) is preserved.

from hyper.

matt2xu avatar matt2xu commented on April 28, 2024

"again" ah I know that feeling... Thanks for fixing this!

from hyper.

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.