(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| use actix_service::{Service, Transform}; | |
| use actix_web::{dev::ServiceRequest, dev::ServiceResponse, Error}; | |
| use futures::future::{ok, FutureResult}; | |
| use futures::{Future, Poll}; | |
| use slog::info; | |
| // There are two step in middleware processing. | |
| // 1. Middleware initialization, middleware factory get called with | |
| // next service in chain as parameter. | |
| // 2. Middleware's call method get called with normal request. |
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "encoding/hex" | |
| "fmt" | |
| "io" | |
| ) |