Documentation ¶
Overview ¶
Package binding provides functions for binding input to internal parameter structures and verifying those bindings.
Index ¶
Constants ¶
View Source
const ( // MIMEJSON is the mime type string for json MIMEJSON = "application/json" // MIMEPOSTForm is the mime type string for form bodies MIMEPOSTForm = "application/x-www-form-urlencoded" // MIMEMultipartPostForm is the mime type string for multipart bodies MIMEMultipartPostForm = "mulitpart/form-data" )
Variables ¶
View Source
var ( // JSON binding JSON = jsonBinding{} // Form binding Form = formBinding{} // Query binding Query = queryBinding{} // FormPost binding FormPost = formPostBinding{} // FormMultipart binding FormMultipart = formMultipartBinding{} // Path binding binds the uri path Path = uriBinding{} )
Functions ¶
Types ¶
type Body ¶
Body interfaces are like Binding interfaces, but they can also accept the encoded data as a byte slice in addition to a io.Reader from a request.
Click to show internal directories.
Click to hide internal directories.