Skip to content

Commit

Permalink
Document the request_json and request_raw functions and make them…
Browse files Browse the repository at this point in the history
… part of the public API (#94)
  • Loading branch information
DilumAluthge authored Nov 25, 2020
1 parent 6a4c0b8 commit 96dfa88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/requests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ end
return full_url_uri
end

"""
request_raw(client, verb, path; query, body, headers)
request_raw(client, verb, path; query, headers)
request_raw(client, verb, path; body, headers)
request_raw(client, verb, path; headers)
"""
@inline function request_raw(client::Client,
verb::AbstractString,
path::AbstractString;
Expand Down Expand Up @@ -117,6 +123,12 @@ end
return body_string
end

"""
request_json(client, verb, path; query, body, headers)
request_json(client, verb, path; query, headers)
request_json(client, verb, path; body, headers)
request_json(client, verb, path; headers)
"""
@inline function request_json(client::Client,
verb::AbstractString,
path::AbstractString;
Expand Down

2 comments on commit 96dfa88

@DilumAluthge
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v0.7.1 already exists and points to a different commit"

Please sign in to comment.