Caddy.Admin.Request (Caddy v1.0.5)
Req, send request through socket
Link to this section Summary
Functions
Send HTTP DELETE method to admin socket
Send HTTP GET method to admin socket
Send HTTP PATCH method to admin socket
Send HTTP POST method to admin socket
Send HTTP PUT method to admin socket
Link to this section Functions
Link to this function
delete(path, data \\ "", content_type \\ "application/json")
@spec delete(binary(), binary(), binary()) :: {:ok, atom() | %{:headers => list(), optional(any()) => any()}, String.t() | map()}
Send HTTP DELETE method to admin socket
Link to this function
get(path)
Send HTTP GET method to admin socket
Link to this function
patch(path, data, content_type \\ "application/json")
Send HTTP PATCH method to admin socket
Link to this function
post(path, data, content_type \\ "application/json")
Send HTTP POST method to admin socket
Link to this function
put(path, data, content_type \\ "application/json")
@spec put(binary(), binary(), binary()) :: {:ok, atom() | %{:headers => list(), optional(any()) => any()}, String.t() | map()}
Send HTTP PUT method to admin socket