Lightbug
Packages
GitHub
Search documentation...
⌘
K
Toggle theme
http
Modules
__init__
1 functions
Functions
encode
req
:
HTTPRequest
->
List[SIMD[uint8, 1], 1]
common_response
2 functions
Functions
OK
body
:
String
->
HTTPResponse
NotFound
path
:
String
->
HTTPResponse
http_version
1 types
Types
HttpVersion
Implements:
AnyType, Copyable, EqualityComparable, Movable, Stringable
Methods
__init__
__eq__
__ne__
__str__
request
1 types
Types
HTTPRequest
Implements:
AnyType, Copyable, Formattable, Movable, Stringable
Fields
headers
Headers
uri
URI
body_raw
List[SIMD[uint8, 1], 1]
method
String
protocol
String
server_is_tls
Bool
timeout
Int
Methods
__init__
from_bytes
set_connection_close
set_content_length
connection_close
read_body
format_to
__str__
response
2 types
Types
StatusCode
Implements:
AnyType
6 Aliases
HTTPResponse
Implements:
AnyType, Copyable, Formattable, Movable, Stringable
Fields
headers
Headers
body_raw
List[SIMD[uint8, 1], 1]
status_code
Int
status_text
String
protocol
String
Methods
__init__
from_bytes
get_body_bytes
set_connection_close
set_connection_keep_alive
connection_close
set_content_length
content_length
is_redirect
read_body
format_to
__str__
Home
Packages
http