Skip to content

Add Rest client middleware with unit tests#73

Merged
tylertreat-wf merged 4 commits intoWorkiva:masterfrom
danielharasymiw-wf:add-middleware-support
Aug 2, 2016
Merged

Add Rest client middleware with unit tests#73
tylertreat-wf merged 4 commits intoWorkiva:masterfrom
danielharasymiw-wf:add-middleware-support

Conversation

@danielharasymiw-wf
Copy link
Contributor

@danielharasymiw-wf danielharasymiw-wf commented Jul 26, 2016

@aviary2-wf
Copy link

Raven

Number of Findings: 0

httpPut = "PUT"
)

type InvocationHandler func(c *http.Client, method, url string, body interface{}, header http.Header) (*Response, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docstring

@tylertreat-wf
Copy link
Contributor

Could use some docstrings but otherwise lgtm.

)

// The type that is the function that is to be wrapped by the ClientMiddleware
type InvocationHandler func(c *http.Client, method, url string, body interface{}, header http.Header) (*Response, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nit, but Go docstrings should start with the name of the type/function/struct/etc. https://blog.golang.org/godoc-documenting-go-code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the link, I've updated the docstrings and will try and keep it in mind for future use.

@joestrach-wf
Copy link

+1 looks great

@beaulyddon-wf
Copy link
Contributor

+1

1 similar comment
@tylertreat-wf
Copy link
Contributor

+1

@tylertreat-wf tylertreat-wf merged commit 6d6bf2e into Workiva:master Aug 2, 2016
@teresarevious-wf
Copy link

RM +1

verified dependencies manually

@rmconsole-wf
Copy link

QA review can be found here: https://jira.atl.workiva.net/browse/RM-16257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants