docs(hive-forge): add # Errors to put_no_content (argus review)
This commit is contained in:
parent
3790faf318
commit
c7ffe9336b
1 changed files with 6 additions and 0 deletions
|
|
@ -210,6 +210,12 @@ impl Client {
|
|||
/// `204 No Content` (empty body), so there is nothing to decode.
|
||||
/// Used by `repo-add-collaborator` (Forgejo's add-collaborator PUT
|
||||
/// answers 204 on success).
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if the request fails to send (transport/network
|
||||
/// error) or the server responds with a non-2xx status (the response
|
||||
/// body is included in the error).
|
||||
pub fn put_no_content<B: Serialize>(&self, path: &str, body: &B) -> Result<()> {
|
||||
let url = format!("{}{}", self.api(), path);
|
||||
let resp = self
|
||||
|
|
|
|||
Loading…
Reference in a new issue