
# Module `Rewritemod`

Rewrite: Change the request

If you want to use this extension with Ocsigen Server's configuration file, have a look at the [manual page](./rewritemod.md). If you are using Ocsigen Server as a library, use the interface described here. Each of these functions behaves exactly as its configuration file counterpart.

This module belongs to ocamlfind package `ocsigenserver.ext.rewritemod`.

```ocaml
val section : Logs.src
```
```ocaml
val run : 
  ?continue:bool ->
  ?full_rewrite:bool ->
  regexp:string ->
  string ->
  unit ->
  Ocsigen_server.instruction
```
`run ~realm ~auth ()` makes it possible to use this extension without configuration file.
