Questions tagged [rust-warp]

rust warp is a super-easy, composable, web server framework for warp speeds. The main concept in warp is the Filter.

warp is a super-easy, composable, web server framework for warp speeds. Thanks to its Filter system, warp provides these out of the box:

  • Path routing and parameter extraction
  • Header requirements and extraction
  • Query string deserialization
  • JSON and Form bodies
  • Static Files and Directories
  • Websockets
  • Access logging

The main concept in warp is the Filter, which allows composition to describe various endpoints in your web service. Besides this powerful trait, warp comes with several built in filters, which can be combined for your specific needs.

https://docs.rs/warp/

92 questions
-2
votes
1 answer

Rust warp How to proxy request with json payload to another url by adding extra header?

How to add extra header like access_token : jshaj_some_really_long_token and also set content-type to Content-Type: application/json in warp post call? Scenario in detail: I want to create API using warp say the end point is…
rahoolm
  • 733
  • 2
  • 12
  • 22
-4
votes
1 answer

Why does one Warp "hello world" example work when another doesn't?

Both of the following "hello world" samples build successfully, but only the first results in a page that says "Hello World"; the second one gives me an error about the page not being found. The Cargo.toml file is the same for both. I'm accessing…
warsong
  • 1,008
  • 2
  • 12
  • 21
1 2 3 4 5 6
7