rescript-web-types

2.0.0 • Public • Published

rescript-web-types

rescript general types for web entities package

Types

//WebTypes.res
type routeType =
    [ #checkout
    | #copy
    | #get
    | #delete
    | #head
    | #lock
    | #merge
    | #mkactivity
    | #mkcol
    | #move
    | #notify
    | #options
    | #patch
    | #post
    | #purge
    | #put
    | #report
    | #search
    | #subscribe
    | #trace
    | #unlock
    | #unsubscribe
    ]

type redirectStatus = 
    [ #301 
    | #302 
    | #303 
    | #304 
    | #306 
    | #307 
    | #308 
    ]

type errorStatus = 
    [ #400 
    | #401 
    | #402 
    | #403 
    | #404 
    | #405 
    | #406 
    | #407 
    | #408
    | #500
    | #501
    | #502
    | #503
    | #504
    ]

type baseAuth = {
    username: string,
    password: string
}

Author

Anatoly Starodubtsev tostar74@mail.ru

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i rescript-web-types

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

15.6 kB

Total Files

17

Last publish

Collaborators

  • pantagruel74