---
name: "Eliom_s2s.server"
section: "3o"
platform: "linux"
package: "libeliom-ocaml-doc"
version: "4.0.0-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Eliom_s2s.server"
---

# Eliom\_s2s.server(3o)

Server-to-Server communication module.

## NAME

Eliom\_s2s - Server-to-Server communication module.

## Module

Module   Eliom\_s2s

## Documentation

Module **Eliom\_s2s**\
  :  **sig end**

Server-to-Server communication module. Provides general function to communicate to other servers using post or get request.

*val format\_url* :  **string -\> (string \* string) list -\> string**

Format a url with a base and GET parameters

*val do\_get\_request* :  **?params:(string \* string) list -\> string -\> Ocsigen\_http\_frame.t Lwt.t**

Do a get request towards a given url

*val push\_ns* :  **?sep:string -\>** **?namespace\_param:string \* 'a -\>** **string -\> (string \* 'a) list -\> (string \* 'a) list**

Given a list of  **(param, value)** to be sent to the remote server, push a namespace at the beginning of the parameters

*val find\_in\_ns* :  **?namespace\_param:string -\>** **?default\_namespace:string -\> 'a -\> (string \* 'a) list -\> (string \* 'a) list**

Finds some parameters in a namespace, identified by its url. You can specify a default namespace, so  **find\_in\_ns** do not fail when the url is not found.

*val strip\_ns* :  **string -\> (string \* string) list -\> (string \* string) list**

Retrieves parameters beginning with the specified namespace and strips it.

*val parse\_key\_pairs* :  **string -\> (string \* string) list**

Parse an answer in the Key-Value form : foo:bar foobar:value

*val direct\_request* :  **(string \* string) list -\> string -\> (string \* string) list Lwt.t**

Perform a direct (POST) request towards a server, and parse the result as key-value data
