Generation

generate functionMon, 14 Nov 2022

basic http service

defmodule HttpService do @moduledoc """ An implementation of the basic http service """ @doc """ Get a resource """ def get(url) do "getting a resource" end @doc """ Post a resource """ def post(url, body) do "posting a resource" end @doc """ Put a resource """ def put(url, body) do "putting a resource" end end

Questions about programming?Chat with your personal AI assistant