Skip to content

Commit

Permalink
Doc: Add more about ParamOptional/HeaderOptional
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Jul 12, 2024
1 parent 6ca134f commit d7a09c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builder_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import (
// then customize it with
// [Builder.Scheme], [Builder.Host], [Builder.Hostf], [Builder.Path],
// [Builder.Pathf], [Builder.Param], and [Builder.ParamInt].
// [Builder.ParamOptional] can be used to add a query parameter
// only if it has not been otherwise set.
//
// # Build an http.Request with Builder.Request
//
Expand All @@ -37,6 +39,8 @@ import (
// or set conventional header keys with
// [Builder.Accept], [Builder.BasicAuth], [Builder.Bearer], [Builder.CacheControl],
// [Builder.ContentType], [Builder.Cookie], and [Builder.UserAgent].
// [Builder.HeaderOptional] can be used to add a header
// only if it has not been otherwise set.
//
// Set the body of the request, if any, with [Builder.Body]
// or use built in [Builder.BodyBytes], [Builder.BodyFile], [Builder.BodyForm],
Expand Down

0 comments on commit d7a09c4

Please sign in to comment.