Suppose you have a web server at http://127.0.0.1:8080/, which has various endpoints:
http://127.0.0.1:8080/hello-worldhttp://127.0.0.1:8080/jsonhttp://127.0.0.1:8080/wiki
Your task is to create a function getContentType() that takes an url read from the input as an argument, makes a GET request to the url and returns a string with the Content-Type of the response.
To do this, you'll need to access the Header field within the response struct, use the Get method, and pass to it "Content-Type" as an argument.
For example, getContentType("https://127.0.0.1:8080/hello-world") should return the following string: "text/plain; charset=utf-8".