Module livy::http [] [src]

Utilities for sending an HTTP request and receiving an HTTP response

Enums

Method

HTTP Method

Functions

param

Constructs a new String which represents a key-value parameter string from key and value and returns the result as a form of Some(String).

params

Constructs a new String which represents a key-value parameters string as a form of "?key1=value1&key2=value2&...".

remove_trailing_slash

Removes the trailing slash of s if it exists, constructs a new String from the result and returns it.

send

Sends an HTTP request, deserializes the response body and returns the result.