MCPcopy Create free account
hub / github.com/libgit2/pygit2 / user_agent

Method user_agent

pygit2/settings.py:230–232  ·  view source on GitHub ↗

Get or set the user agent string for network operations

(self)

Source from the content-addressed store, hash-verified

228
229 @property
230 def user_agent(self) -> str | None:
231 """Get or set the user agent string for network operations"""
232 return option(Option.GET_USER_AGENT)
233
234 @user_agent.setter
235 def user_agent(self, value: str | bytes) -> None:

Callers

nothing calls this directly

Calls 1

optionFunction · 0.90

Tested by

no test coverage detected