---
name: "Eliom_unwrap.client"
section: "3o"
platform: "linux"
package: "libeliom-ocaml-doc"
version: "2.2.2-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Eliom_unwrap.client"
---

# Eliom\_unwrap.client(3o)

register\_unwrapper id f register an unwrapping function f to be called when a value is marked with the id id

## NAME

Eliom\_unwrap - register\_unwrapper id f register an unwrapping function f to be called when a value is marked with the id id

## Module

Module   Eliom\_unwrap

## Documentation

Module **Eliom\_unwrap**\
  :  **sig end**

**register\_unwrapper id f** register an unwrapping function  **f** to be called when a value is marked with the id  **id**

*type unwrap\_id*

*val register\_unwrapper* :  **unwrap\_id -\> ('a -\> 'b) -\> unit**

**=== register\_unwrapper id f register an unwrapping function f to** **be called when a value is marked with the id id ===**

*val unwrap* :  **string -\> int -\> 'a**

**unwrap s i** unmarshal  **s** (starting at character  **i** ) and transform the value  **v** using registered wrappers. The marshalled value must have been produced with  **Marshal.to\_string** **(Eliom\_wrap.wrap v)** . This function is for internal use only

*val unwrap\_js\_var* :  **string -\> 'a**

**unwrap\_js\_var v** execute  **unwrap** on the content of the javascript variable  **v**

*val id\_of\_int* :  **int -\> unwrap\_id**
