WithQueryDel returns a RequestOption that deletes the query value(s) associated with the key.
(key string)
| 158 | |
| 159 | // WithQueryDel returns a RequestOption that deletes the query value(s) associated with the key. |
| 160 | func WithQueryDel(key string) RequestOption { |
| 161 | return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error { |
| 162 | query := r.Request.URL.Query() |
| 163 | query.Del(key) |
| 164 | r.Request.URL.RawQuery = query.Encode() |
| 165 | return nil |
| 166 | }) |
| 167 | } |
| 168 | |
| 169 | // WithJSONSet returns a RequestOption that sets the body's JSON value associated with the key. |
| 170 | // The key accepts a string as defined by the [sjson format]. |
nothing calls this directly
no test coverage detected
searching dependent graphs…