| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Polysemy.Http.Data.Request
Description
Synopsis
- data Method
- methodUpper :: Method -> Text
- newtype Host = Host {}
- newtype Port = Port {}
- newtype Tls = Tls {}
- newtype Path = Path {}
- newtype QueryKey = QueryKey {
- unQueryKey :: Text
- newtype QueryValue = QueryValue {
- unQueryValue :: Text
- newtype Body = Body {
- unBody :: ByteString
- data Request = Request {}
Documentation
All standard HTTP methods, mirroring those from Types, plus a constructor for arbitrary strings.
methodUpper :: Method -> Text Source #
Produce the usual uppercase representation of a method.
Request host name.
Instances
Request port.
Instances
| FromJSON Port Source # | |
| ToJSON Port Source # | |
Defined in Polysemy.Http.Data.Request | |
| Enum Port Source # | |
| Generic Port Source # | |
| Num Port Source # | |
| Read Port Source # | |
| Integral Port Source # | |
| Real Port Source # | |
Defined in Polysemy.Http.Data.Request Methods toRational :: Port -> Rational # | |
| Show Port Source # | |
| Eq Port Source # | |
| Ord Port Source # | |
| type Rep Port Source # | |
Defined in Polysemy.Http.Data.Request | |
A flag that indicates whether a request should use TLS.
Rrequest path.
Instances
| FromJSON Path Source # | |
| ToJSON Path Source # | |
Defined in Polysemy.Http.Data.Request | |
| IsString Path Source # | |
Defined in Polysemy.Http.Data.Request Methods fromString :: String -> Path # | |
| Monoid Path Source # | |
| Semigroup Path Source # | |
| Generic Path Source # | |
| Show Path Source # | |
| Eq Path Source # | |
| type Rep Path Source # | |
Defined in Polysemy.Http.Data.Request | |
The key of a query parameter.
Constructors
| QueryKey | |
Fields
| |
Instances
| FromJSON QueryKey Source # | |
| ToJSON QueryKey Source # | |
Defined in Polysemy.Http.Data.Request | |
| IsString QueryKey Source # | |
Defined in Polysemy.Http.Data.Request Methods fromString :: String -> QueryKey # | |
| Generic QueryKey Source # | |
| Show QueryKey Source # | |
| Eq QueryKey Source # | |
| type Rep QueryKey Source # | |
Defined in Polysemy.Http.Data.Request | |
newtype QueryValue Source #
The value of a query parameter.
Constructors
| QueryValue | |
Fields
| |
Instances
Request body.
Constructors
| Body | |
Fields
| |
Instances
| IsString Body Source # | |
Defined in Polysemy.Http.Data.Request Methods fromString :: String -> Body # | |
| Generic Body Source # | |
| Show Body Source # | |
| Eq Body Source # | |
| type Rep Body Source # | |
Defined in Polysemy.Http.Data.Request type Rep Body = D1 ('MetaData "Body" "Polysemy.Http.Data.Request" "polysemy-http-0.11.0.0-KwdjpKcptzS4j0Fq88wQVf" 'True) (C1 ('MetaCons "Body" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |
HTTP request parameters, used by Http.
Constructors
| Request | |