Skip to content

Commit

Permalink
Merge pull request #2250 from burner/WebParamAttribute_public
Browse files Browse the repository at this point in the history
Made WebParamAttribute public to allow rest introspection
merged-on-behalf-of: Sönke Ludwig <[email protected]>
  • Loading branch information
dlang-bot authored Jan 12, 2019
2 parents 78b0bbe + 904a8c6 commit 763a83a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions web/vibe/web/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,18 @@ package struct PathAttribute
/// private
package struct NoRouteAttribute {}

/// Private struct describing the origin of a parameter (Query, Header, Body).
package struct WebParamAttribute {
/**
* This struct contains a mapping between the name used by HTTP (field)
* and the parameter (identifier) name of the function.
*/
public struct WebParamAttribute {
import vibe.web.internal.rest.common : ParameterKind;

/// The type of the WebParamAttribute
ParameterKind origin;
/// Parameter name
/// Parameter name (function parameter name).
string identifier;
/// The meaning of this field depends on the origin.
/// The meaning of this field depends on the origin. (HTTP request name)
string field;
}

Expand Down

0 comments on commit 763a83a

Please sign in to comment.