You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2024. It is now read-only.
--| ServantRoute represents the URL path components of a route. It is used as an `AnnotatedPackage` domain to override the default path for a `Method`. When used in an `AnnService`, the specified route is used as a prefix for all `Method`s in that `Service`. When used in an `AnnMethod` the specified route is only applied to that single `Method`.
444
-
newtypeServantRoute=ServantRoute [Symbol]
445
-
446
-
typefamilyAny::k
443
+
--| ServantRoute represents the URL path components of a route. It is used as an `AnnotatedPackage` domain to override the default path for a `Method`. When used in an `AnnService`, the specified `TopLevelRoute` is used as a prefix for all `Method`s in that `Service`.
444
+
-- 1. List of components for the route,
445
+
-- 2. HTTP method which must be used,
446
+
-- 3. HTTP status code of a successful HTTP response from a specific `Method`. Use 200 for the usual status code.
--| ServantUnaryContentTypes represents that acceptable content types that can be used when a message in encoded in a unary (non-streaming) HTTP request\/response body. It is used as an `AnnotatedSchema` domain.
--| ServantStreamContentType represents the content type and framing that must be used when a message in encoded in a streaming HTTP request/response body. It is used as an `AnnotatedSchema` domain.
513
526
dataServantStreamContentType
514
527
=ServantStreamContentType
515
528
{framing::Type,
516
529
streamContentType::Type
517
530
}
518
531
519
-
--| ServantMethod represents the HTTP method which must be used when sending a request to a `Method` handler. It can be used as an `AnnotatedPackage` domain to override the default method of `POST`.
520
-
newtypeServantMethod=ServantMethodStdMethod
521
-
522
-
--| ServantStatus represents the HTTP status code of a successful HTTP response from a specific `Method`. It can be used as an `AnnotatedPackage` domain to override the default status code of 200.
523
-
newtypeServantStatus=ServantStatusNat
524
-
525
532
-- extracts a StdMethod from a ServantMethod annotation of a given method, defaulting to POST if such an annotation doesn't exist
0 commit comments