What are the http methods used in GIT smart http

681 views Asked by At

I am trying to configure git using a login servlet, so want to know what all http methods are used in smart http

1

There are 1 answers

1
Palec On

I believe only GET and POST requests are made. According to a blog post on Git's website concerning smart HTTP transport, it seems like that.

EDIT: Checked current Git's source code in master branch (3d092bfc) and discovered that http-backend.c accepts HEAD requests too. After detecting a HEAD request it immediately starts treating it as a GET. According to services[] and main() in the same source file, only GET and POST requests are handled otherwise.