hunt-httpclient ~master (2021-11-19T09:43:32Z)
Home
Dub
Repo
Request.acceptJson
hunt
httpclient
Request
Request
Indicate that JSON should be returned by the server.
class
Request
Request
acceptJson
(
string
contentType
)
Meta
Source
See Implementation
hunt
httpclient
Request
Request
constructors
this
functions
accept
acceptJson
asForm
asJson
asMultipart
attach
bodyFormat
contentType
del
formData
get
patch
post
put
retry
timeout
withCookies
withHeaders
withToken
Indicate that JSON should be returned by the server.