hunt-httpclient ~master (2021-11-19T09:43:32Z)
Home
Dub
Repo
Request.withToken
hunt
httpclient
Request
Request
Specify an authorization token for the request.
class
Request
Request
withToken
(
string
value
,
string
type
= "Bearer"
)
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
Specify an authorization token for the request.