Module choices::warp[][src]

Re-export of warp

Modules

filters

Built-in Filters

http

A general purpose library of common HTTP types

hyper

hyper

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.

Rejection

Rejection of a request by a Filter.

Server

A Warp Server ready to filter requests.

Traits

Buf

Read bytes from a buffer.

Filter

Composable request filters.

Future

A future represents an asynchronous computation.

Reply

Types that can be converted into a Response.

Sink

A Sink is a value into which other values can be sent, asynchronously.

Stream

A stream of values produced asynchronously.

Functions

any

A filter that matches any route.

cookie

Creates a Filter that requires a cookie by name.

cors

Create a wrapping filter that exposes CORS behavior for a wrapped filter.

delete

Create a Filter that requires the request method to be DELETE.

get

Create a Filter that requires the request method to be GET.

head

Create a Filter that requires the request method to be HEAD.

header

Create a Filter that tries to parse the specified header.

log

Create a wrapping filter with the specified name as the target.

method

Extract the Method from the request.

options

Create a Filter that requires the request method to be OPTIONS.

patch

Create a Filter that requires the request method to be PATCH.

path

Create an exact match path segment Filter.

post

Create a Filter that requires the request method to be POST.

put

Create a Filter that requires the request method to be PUT.

query

Creates a Filter that decodes query parameters to the type T.

redirect

A simple 301 redirect to a different location.

reject

Rejects a request with 404 Not Found.

reply

Returns an empty Reply with status code 200 OK.

serve

Create a Server with the provided Filter.

service

Convert a Filter into a Service.

trace

Create a wrapping filter that instruments every request with a custom tracing Span provided by a function.

wrap_fn

Function that receives a filter to be combined with pre and after filters

ws

Creates a Websocket Filter.