warp is a super-easy, composable, web server framework for warp speeds.
Thanks to its
Filter
system, warp provides these out of the box:Although there is no bandwidth limit when using WARP to access the Internet, the default traffic that Cloudflare gives you is limited. When it runs out, you can no longer use it. In this case, you can share the app with your friends to get 1GB or upgrade to the premium version with unlimited traffic for $ 4. A simple waypoint based teleportation mod. Money pro 1 9 – manage money like a program.
- Path routing and parameter extraction
- Header requirements and extraction
- Query string deserialization
- JSON and Form bodies
- Multipart form data
- Static Files and Directories
- Websockets
- Access logging
- Etc
Since it builds on top of hyper, you automatically get:
- HTTP/1
- HTTP/2
- Asynchronous
- One of the fastest HTTP implementations
- Tested and correct
Filters
The main concept in warp is the
Filter
, which allows compositionto describe various endpoints in your web service. Besides this powerfultrait, warp comes with several built in filters, whichcan be combined for your specific needs.As a small example, consider an endpoint that has path and header requirements:
This example composes several
Filter
s together using and
:- A path prefix of 'hello'
- A path parameter of a
String
- The
user-agent
header parsed as aString
These specific filters will
reject
requests that don't matchtheir requirements.This ends up matching requests like:
And it returns a response similar to this:
Take a look at the full list of
filters
to see whatyou can build.Testing
![Warp Warp](https://res.cloudinary.com/practicaldev/image/fetch/s--YFQun8pc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/DLneVBm.png)
Testing your web services easily is extremely important, and warp providesa
test
module to help send mocked requests through your service.Modules
filters | Built-in Filters |
redirect | Redirect requests to a new location. |
reject | Rejections |
reply | Reply to requests. |
test | Test utilities to test your filters. |
Macros
path | Convenient way to chain multiple path filters together. |
Structs
Error | Errors that can happen inside warp. |
Server | A Warp Server ready to filter requests. |
TlsServer | A Warp Server ready to filter requests over TLS. |
Traits
Filter | Composable request filters. |
Functions
serve | Create a Server with the provided Filter . |
service | Convert a Filter into a Service . |
![Warp 4.5 Warp 4.5](https://www.operating-system.org/betriebssystem/bsgfx/ibm/os2warp4-scr-a1.png)
warp is a super-easy, composable, web server framework for warp speeds.
Thanks to its
Filter
system, warp provides these out of the box:Warp 4-2
- Path routing and parameter extraction
- Header requirements and extraction
- Query string deserialization
- JSON and Form bodies
- Multipart form data
- Static Files and Directories
- Websockets
- Access logging
- Etc
Since it builds on top of hyper, you automatically get:
- HTTP/1
- HTTP/2
- Asynchronous
- One of the fastest HTTP implementations
- Tested and correct
Filters
The main concept in warp is the
Filter
, which allows compositionto describe various endpoints in your web service. Besides this powerfultrait, warp comes with several built in filters, whichcan be combined for your specific needs.As a small example, consider an endpoint that has path and header requirements:
This example composes several
Filter
s together using and
:- A path prefix of 'hello'
- A path parameter of a
String
- The
user-agent
header parsed as aString
These specific filters will
reject
requests that don't matchtheir requirements.This ends up matching requests like:
And it returns a response similar to this:
Take a look at the full list of
filters
to see whatyou can build.Testing
Testing your web services easily is extremely important, and warp providesa
test
module to help send mocked requests through your service.Modules
filters | Dictionaries 1 3 3 equals. Built-in Filters |
redirect | Money by jumsoft 4 7 5. Redirect requests to a new location. |
reject | Rejections |
reply | Reply to requests. |
test | Test utilities to test your filters. |
Macros
path | Convenient way to chain multiple path filters together. |
Structs
Error | Errors that can happen inside warp. |
Server | A Warp Server ready to filter requests. |
TlsServer | A Warp Server ready to filter requests over TLS. |
Warp 40k
Traits
Filter | Composable request filters. |
Warp 4060
Functions
Warp 4.5
serve | Create a Server with the provided Filter . |
service | Convert a Filter into a Service . |