Questions tagged [hyper]

A fast and correct HTTP implementation for Rust.

Hyper is a fast, safe HTTP implementation written in and for Rust.

  • A Client for talking to web services.
  • A Server for building those web services.
  • Blazing fast* thanks to Rust.
  • High concurrency with non-blocking sockets.
  • HTTP/1 and HTTP/2 support.

Github Repository

Guide

256 questions
1
vote
1 answer

Cargo Fails to Compile hyper with Darwin Target

I have a CLI that I wrote and am trying to have it built for these targets in a Docker image based from the rust:1.53-slim image: x86_64-unknown-linux-gnu x86_64-apple-darwin x86_64-pc-windows-gnu The Linux and Windows targets are building…
m_callens
  • 6,100
  • 8
  • 32
  • 54
1
vote
0 answers

Hyper not showing output of ls and touch

I Wrote ls in one of my folders from hyper but it didn't show the name of the files in the folder but instead, it showed 'ls' is not recognized as an internal or external command, operable program, or batch file. same with the touch command.
1
vote
1 answer

Borrowed value does not live enough?

This is the continuation of `RefCell` cannot be shared between threads safely?, made a new Q for better presentation. I made a minimal main with a Mutex, but now test_for_closure does not live long enough and is dropped here…
rollingBalls
  • 1,808
  • 1
  • 14
  • 25
1
vote
1 answer

How to create a warp route based on the path suffix?

I need to create a route in warp for all URLs ending with an extension, regardless of the number of segments in the URL path, e.g. path.ext, some/path.ext and some/other/path.ext should be processed by the same route. The closer I could get to a…
Jon Mod
  • 11
  • 3
1
vote
1 answer

Error: Could not find main or io in tokio, invalid return type `impl Future`

I'm on my way of converting to Rust from the ML family, but I'm finding it hard at some strange places I'm not used to having problems. I'm trying to use hyper for http handling but can't seem to get tokio to work. I have tried to copy paste this…
kam
  • 590
  • 2
  • 11
1
vote
1 answer

How to use Hyper body channel?

I am trying to make a POST HTTP request using the Hyper library, and then write data to it until I close it (from multiple functions/threads). I've found in documentation that I can use Body::channel() to do this, but I am using it improperly as I…
Makalone LOgman
  • 948
  • 1
  • 12
  • 25
1
vote
2 answers

Hyper terminal issue ubuntu

I have installed hyper through command line. After installing I tried to configure it. after that whenever I'm trying to launch the hyper, it is opening with the following in the screen: execvp(3) failed.: No such file or directory How to solve…
1
vote
1 answer

Error: EPERM : Operation not permitted,mkdir

When i try to execute the command "npx create-react-app my-app" Hyper shows error Error:EPERM : Operation not permitted, mkdir comman not found : create react app. Please help me to solve this problem.**
1
vote
1 answer

How do I terminate a hyper server after fulfilling one request?

I need a simple hyper server that serves a single request and then exits. This is my code so far, I believe that all I need is a way to get tx into hello, so I can use tx.send(()) and it should work the way I want it. However, I can't quite work out…
Horsey
  • 151
  • 1
  • 13
1
vote
1 answer

Python hyper force HTTP/2 when using requests

I'm trying to use hyper.contrib HTTP20Adapter with the requests module as described here, but even with following the example for using HTTP/2 in this way, it still uses HTTP/1.1. This results in ConnectionResetError and HTTP/2 is never attempted. …
Rusty Lemur
  • 1,697
  • 1
  • 21
  • 54
1
vote
1 answer

How to get Rust Hyper to specify outgoing source port?

Is there a way to get Hyper to instruct the network interface to assign a specific source port to all outgoing HTTP requests?
adv
  • 357
  • 5
  • 18
1
vote
1 answer

Rust lifetimes with closures using hyper

Been learning rust and having a problem with lifetime when passing conn to the request_handler. I get an error saying error[E0312]: lifetime of reference outlives lifetime of borrowed content... --> src/main.rs:33:70 | 33 | let…
Gekctek
  • 1,161
  • 2
  • 12
  • 23
1
vote
3 answers

What is the syntax to open a file with Visual Studio Code from the Hyper terminal (using Windows 10)?

I have installed the VSC's extension "Hyper in VS Code" and Git. I know for opening files with Atom on the mac you type "open Atom filename". What is the equivalent to this on Windows 10 for VSC? Thanks in advance.
Linda Ye
  • 21
  • 1
  • 5
1
vote
1 answer

Heroku is not dectecting Node.js buildpacks

I am using Heroku and trying to deploy my code, but when I try to deploy I get an error. It says it does not detect any build packs, but I have done a version check and have the latest Node.js installed. Is there something I am…
1
vote
0 answers

npm package installation in hyper

While installing any npm package in hyper, it's showing an error For eg npm install bus gives an error UNABLE_TO_VERIFY_LEAF_SIGNATURE Whats wrong here and how to resolve it?
Ayan
  • 11
  • 1