Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OctaneWeb/Octane
/ functions
Functions
237 in github.com/OctaneWeb/Octane
⨍
Functions
237
◇
Types & classes
43
Method
cookie
(&mut self, cookie: Cookie<'a>)
src/responder.rs:409
Function
cookie_new
()
src/cookie.rs:102
Function
cookie_parsing
()
src/cookie.rs:108
Function
cookie_serialize
()
src/cookie.rs:120
Method
default
()
src/responder.rs:518
Method
deref
(&self)
src/util.rs:60
Function
does_not_semantically_validate_the_version_token
()
octane_http/src/http1x/raw_request.rs:199
Function
eat_till_finds_first_byte
()
octane_http/src/eater.rs:59
Function
eat_till_four_bytes_finds_terminator
()
octane_http/src/eater.rs:77
Function
eat_till_two_bytes_finds_pair
()
octane_http/src/eater.rs:67
Method
err
(status_code: StatusCode, stream: S)
src/error.rs:42
Function
errors_when_peer_hangs_up_before_head_completes
()
octane_http/src/http1x/mod.rs:127
Function
fail_empty_name
()
src/request.rs:576
Function
fail_extra_1
()
src/request.rs:482
Function
fail_extra_2
()
src/request.rs:489
Function
fail_malformed_name
()
src/request.rs:584
Function
fail_malformed_version
()
src/request.rs:497
Function
fail_missing_clause
()
src/request.rs:504
Function
fail_no_value
()
src/request.rs:569
Function
fail_traversal
()
src/path.rs:503
Function
find_in_slice_locates_and_misses
()
octane_http/src/http1x/mod.rs:137
Method
fmt
(&self, f: &mut Formatter<'_>)
src/file_handler.rs:152
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/responder.rs:525
Method
fmt
(&self, f: &mut Formatter<'_>)
src/error.rs:64
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/path.rs:18
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
octane_http/src/lib.rs:133
Method
from
(cookie: CookieRs<'b>)
src/cookie.rs:88
Method
from
(p: PathBuf)
src/path.rs:132
Method
from_iter
(iter: I)
src/path.rs:409
Method
from_raw
( headers: &'a Headers, request_line: RequestLine, mut body: &'a [u8], body_ve
src/request.rs:296
Method
from_str
(s: &str)
src/path.rs:140
Method
get
(&mut self, path: &str, closure: Closure)
src/server.rs:235
Method
get_arr
Get the vector (array) from a `QueryValue` instance, else None
src/query.rs:179
Method
get_extended_query
(&self)
src/request.rs:345
Method
get_extension
A helper method to get extension from a PathBuf
src/file_handler.rs:57
Method
get_obj
Get the object (key and value seperated items) from a `QueryValue` instance, else None
src/query.rs:187
Method
get_query
Parse the query and return the key value pairs in the form of an HashMap ``` use octane::prelude::*; let mut app = Octane::new(); app.get("/", rout
src/request.rs:338
Function
get_second
(tup: (PathChunk, PathNode<T>))
src/path.rs:444
Method
get_str
Get the string from a `QueryValue` instance, else None
src/query.rs:171
Method
handle_file
Takes a Pathbuf and returns a FileHandler struct
src/file_handler.rs:33
Method
has_headers
(&self)
octane_http/src/http1x/raw_request.rs:102
Method
has_request_method
(&self)
octane_http/src/http1x/raw_request.rs:114
Method
has_request_url
(&self)
octane_http/src/http1x/raw_request.rs:110
Method
has_request_version
(&self)
octane_http/src/http1x/raw_request.rs:106
Method
headers
(&self)
src/responder.rs:496
Method
headers_sent
Tells if the headers are sent or not # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|req, res| { assert_eq
src/responder.rs:315
Function
http_1x_reader
Free-function form of [`Http1xReader::new`], kept for call sites that read a request without holding onto a reader type.
octane_http/src/http1x/mod.rs:61
Function
is_ctl
(c: char)
src/path.rs:440
Method
json
(&mut self, structure: T)
src/responder.rs:261
Method
keep_alive
(&self)
src/http/mod.rs:47
Method
listen_ssl
(self, exec: C, server: Arc<Octane>)
src/server_builder.rs:50
Method
listen_ssl
(server: Arc<Octane>)
src/server.rs:138
Method
max
Returns the amount of max requests specified in the keep alive header
src/request.rs:393
Method
mime_type
Perform a match on the extension and return the mime type accordingly
src/file_handler.rs:68
Method
name
Return the name of the header
src/request.rs:165
Method
new
Creates a new `Cookie` instance with the given `name` and `value`. # Example ``` use octane::prelude::*; let cookie = octane::cookie::Cookie::new("
src/cookie.rs:45
Method
new
Returns a new Ssl struct instance with default port 443
src/config.rs:42
Method
new
(err_type: u8)
src/file_handler.rs:26
Method
new
(port: u16)
src/server_builder.rs:20
Method
new
Generates a new empty response
src/responder.rs:459
Method
new
Creates a new server instance with empty config and empty router
src/server.rs:55
Method
new
(string: &'a [T], seq: &'a [T])
src/util.rs:16
Method
new
()
src/path.rs:28
Method
new
Return a new and empty router instance, with this you can start using router.METHODs on it and then append the `Router` instance to the app (`Octane`)
src/router.rs:226
Method
new
(it: &'a mut dyn Iterator<Item = T>)
src/query.rs:53
Method
new
( mut reader: R, data: &'a mut Vec<u8>, )
octane_http/src/http1x/mod.rs:25
Method
new
An empty request view, with every field pointing at an empty slice.
octane_http/src/http1x/raw_request.rs:39
Method
new_empty
Creates a new response with empty body
src/responder.rs:445
Method
new_from_slice
Creates a new response from a slice
src/responder.rs:437
Method
next
(&mut self)
src/path.rs:293
Method
now
()
src/time.rs:29
Method
pad_zero
(self)
src/time.rs:22
Method
parse
Parse a Cookie header value and create a Vec with all the cookies in the header
src/cookie.rs:70
Method
parse
(path: &str)
src/path.rs:44
Function
parse_without_body
Helper function for extracting some headers
octane_http/src/http1x/mod.rs:92
Function
parses_a_minimal_request_with_no_headers
()
octane_http/src/http1x/raw_request.rs:124
Function
parses_headers_and_body
()
octane_http/src/http1x/raw_request.rs:137
Function
parsing_is_zero_copy
()
octane_http/src/http1x/raw_request.rs:161
Method
patch
(&mut self, path: &str, closure: Closure)
src/router.rs:456
Method
poll_read
(mut self: Pin<&mut Self>, _: &mut Context, buf: &mut ReadBuf)
src/util.rs:66
Function
reads_a_request_split_across_chunks
()
octane_http/src/http1x/mod.rs:112
Method
reason_phrase
(&self)
src/responder.rs:478
Method
redirect
Sets the Location header with a status code `302 FOUND` # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|re
src/responder.rs:383
Function
rejects_empty_method
()
octane_http/src/http1x/raw_request.rs:215
Function
rejects_empty_version
()
octane_http/src/http1x/raw_request.rs:190
Function
rejects_request_line_without_spaces
()
octane_http/src/http1x/raw_request.rs:182
Function
rejects_request_without_head_terminator
()
octane_http/src/http1x/raw_request.rs:207
Function
response_with_different_http_version
()
src/responder.rs:569
Function
response_with_status_code_different
()
src/responder.rs:557
Function
router_append_test
()
src/router.rs:497
Function
router_test
()
src/router.rs:480
Method
send
Puts the given text to the body and send it as html by default # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", rout
src/responder.rs:138
Method
send_file
Send a file as the response, automatically detect the mime type and set the headers accordingly # Example ``` use octane::prelude::*; use std::path:
src/responder.rs:221
Method
serve
(stream_async: S, server: Arc<Octane>)
src/server.rs:167
Method
set_keepalive
(&mut self, duration: Duration)
src/config.rs:248
Method
set_keepalive
(&mut self, duration: Duration)
src/server.rs:261
Function
some_more_time_stamps
()
src/time.rs:175
Function
some_time_stamp
()
src/time.rs:168
Method
ssl
(&mut self, port: u16)
src/server.rs:268
Function
start_date
()
src/time.rs:161
← previous
next →
101–200 of 237, ranked by callers