[][src]Module dns_online::net

Structs

FormData

Holds a (key, value) tuple of data to send along a HTTP POST or PATCH request

Enums

DNSType

The various types of DNS entries you may add

HTTPOp

Contains all the kinds of operations supported by the API You have to specify data if you are using an operation that requires it, such as POST.

Functions

execute_query

Generate and execute an HTTP query to 'api_endpoint'. This function allow you to provide a callback to configure the query (e.g. setting the type of query or adding data) and another function to parse the response from the api endpoint

make_query

Generate a query using curl easyHTTP interface This will request the api endpoint at the url api_endpoint with the user-supplied authentification token auth_token

parse_json

Return the json object parsed as a Rust object of type T

query_set_type

Select the type of HTTP operation to perform. This can be used as a simple configuration callback function for execute_query.

throw_value

We don't care about this value, so we might as well throw it away. Note that you may still have to annotate the type T for your module to compile.

to_string

Return the data from the API, converted to UTF8