Skip to content

Commit

Permalink
Add comments to explain the Request.URL field (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Jan 4, 2023
1 parent e8ed815 commit fe5fafc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ type Request struct {
RawURL string // read only
Method string
Body []byte
URL *urlpkg.URL
GetBody GetContentFunc
// URL is an auto-generated field, and is nil in request middleware (OnBeforeRequest),
// consider using RawURL if you want, it's not nil in client middleware (WrapRoundTripFunc)
URL *urlpkg.URL

isMultiPart bool
disableAutoReadResponse bool
Expand Down

0 comments on commit fe5fafc

Please sign in to comment.