Skip to content

Commit

Permalink
include HEAD method to http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Dec 7, 2023
1 parent 979413c commit d8d7ebe
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,12 @@ public enum HttpMethod
/// <summary>
/// Http DELETE.
/// </summary>
DELETE
DELETE,

/// <summary>
/// Http HEAD.
/// </summary>
HEAD
}

/// <summary>
Expand Down Expand Up @@ -315,7 +320,8 @@ public enum HttpMethod
}

break;
case HttpMethod.DELETE:
case HttpMethod.DELETE:
case HttpMethod.HEAD:
response = await client.SendAsync(request, cancellationToken).ConfigureAwait(false);
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"POST",
"PATCH",
"PUT",
"DELETE"
"DELETE",
"HEAD"
],
"examples": [
"GET",
Expand Down
6 changes: 4 additions & 2 deletions tests/Microsoft.Bot.Builder.TestBot.Json/testbot.schema
Original file line number Diff line number Diff line change
Expand Up @@ -3607,7 +3607,8 @@
"POST",
"PATCH",
"PUT",
"DELETE"
"DELETE",
"HEAD"
],
"examples": [
"GET",
Expand Down Expand Up @@ -9216,7 +9217,8 @@
"POST",
"PATCH",
"PUT",
"DELETE"
"DELETE",
"HEAD"
],
"examples": [
"GET",
Expand Down
3 changes: 2 additions & 1 deletion tests/tests.schema
Original file line number Diff line number Diff line change
Expand Up @@ -3868,7 +3868,8 @@
"POST",
"PATCH",
"PUT",
"DELETE"
"DELETE",
"HEAD"
],
"examples": [
"GET",
Expand Down

0 comments on commit d8d7ebe

Please sign in to comment.