MCPcopy Create free account

hub / github.com/OctaneWeb/Octane / functions

Functions237 in github.com/OctaneWeb/Octane

↓ 26 callersMethodget
(&'a self, path: &'a PathBuf)
src/path.rs:257
↓ 22 callersMethoditer
(&self)
src/path.rs:330
↓ 22 callersMethodto_string
(&self)
octane_http/src/lib.rs:49
↓ 18 callersMethodinsert
(&mut self, path: PathBuf, data: T)
src/path.rs:208
↓ 9 callersMethodinto_iter
(self)
src/path.rs:386
↓ 9 callersMethodnext
(&mut self)
src/util.rs:32
↓ 9 callersMethodparse
Parse the head of an HTTP/1.x request out of `buf`, borrowing from it. `buf` is expected to contain at least the request-line and the headers termina
octane_http/src/http1x/raw_request.rs:48
↓ 7 callersMethodextend
(&mut self, iter: I)
src/path.rs:401
↓ 7 callersMethodget
(&mut self, path: &str, closure: Closure)
src/router.rs:444
↓ 7 callersFunctionrun
(octane: Octane, exec: T)
tests/common.rs:7
↓ 6 callersFunctionextend
(ts: &mut TokenStream, tt: T)
octane_macros/src/util.rs:25
↓ 6 callersMethodset
Adds appends a custom header with the headers that will be sent. Note**: This will overwrite the header with the same name # Example ``` use octane
src/responder.rs:95
↓ 6 callersFunctionunescape_hex
(string: &str)
src/query.rs:3
↓ 5 callersMethodbuild
Returns a `CookieBuilder` from the `cookie-rs` library to build a `Cookie`. # Example ``` use octane::prelude::*; use cookie::Cookie as CookieRs; l
src/cookie.rs:65
↓ 4 callersMethodformat
(&self)
src/time.rs:42
↓ 4 callersMethodnext
(&mut self)
src/query.rs:89
↓ 4 callersFunctionparse_query
(query: &str)
src/query.rs:119
↓ 4 callersMethodset_keepalive
(&mut self, keep_alive: KeepAliveState)
src/http/mod.rs:40
↓ 4 callersMethodstatus
Set the status code from the status code enum # Example ``` use octane::prelude::*; use octane::StatusCode; let mut app = Octane::new(); app.get( "
src/responder.rs:287
↓ 3 callersMethodadd
(&mut self, closure: Closure)
src/router.rs:460
↓ 3 callersMethoddefault_headers
Automatically set headers like date, content length, and sent content header to "text/html" if no content header is sent
src/responder.rs:148
↓ 3 callersMethoddelete
(&mut self, path: &str, closure: Closure)
src/server.rs:238
↓ 3 callersMethoddelete
(&mut self, path: &str, closure: Closure)
src/router.rs:448
↓ 3 callersMethodget_data
Consume the response and get the final formed http response that the server will send in bytes
src/responder.rs:193
↓ 3 callersMethodhead
(&mut self, path: &str, closure: Closure)
src/server.rs:229
↓ 3 callersMethodhead
(&mut self, path: &str, closure: Closure)
src/router.rs:436
↓ 3 callersMethodis_some
Return false if the RequestMethod is `None`, otherwise it's true
src/request.rs:51
↓ 3 callersFunctionparse_extended_query
(query: &str)
src/query.rs:197
↓ 3 callersMethodpatch
(&mut self, path: &str, closure: Closure)
src/server.rs:244
↓ 3 callersMethodpost
(&mut self, path: &str, closure: Closure)
src/server.rs:241
↓ 3 callersMethodpost
(&mut self, path: &str, closure: Closure)
src/router.rs:452
↓ 3 callersMethodput
(&mut self, path: &str, closure: Closure)
src/server.rs:232
↓ 3 callersMethodput
(&mut self, path: &str, closure: Closure)
src/router.rs:440
↓ 3 callersMethodunwrap_node_mut
(&mut self)
src/path.rs:180
↓ 2 callersFunctionacceptor
(settings: &OctaneConfig)
src/tls/rustls.rs:13
↓ 2 callersMethodappend
Appends a settings instance to self
src/config.rs:212
↓ 2 callersFunctionblock_on
(fut: F)
octane_http/src/http1x/mod.rs:104
↓ 2 callersMethodcert
Mutates the Ssl struct and sets the SSL certificate path # Example ```no_run use octane::config::OctaneConfig; let mut config = OctaneConfig::new()
src/config.rs:77
↓ 2 callersMethodcheck_matches
( &'a self, other: &'b PathBuf, )
src/path.rs:71
↓ 2 callersFunctioneat_till
(buf: &[u8], byte: char)
octane_http/src/eater.rs:3
↓ 2 callersFunctionfind_in_slice
(haystack: &[T], needle: &[T])
octane_http/src/http1x/mod.rs:71
↓ 2 callersFunctionfrom_hex
(chr: char)
src/query.rs:102
↓ 2 callersMethodinto
(self)
octane_http/src/lib.rs:126
↓ 2 callersMethodkey
Mutates the Ssl struct and sets the private key path # Example ```no_run use octane::config::OctaneConfig; let mut config = OctaneConfig::new(); co
src/config.rs:61
↓ 2 callersMethodpeek
(&mut self)
src/query.rs:63
↓ 2 callersMethodset
(&mut self, err_code: StatusCode)
src/http/mod.rs:37
↓ 2 callersMethodssl
(&mut self, port: u16)
src/config.rs:256
↓ 1 callersMethodappend
append the routes stored in a custom Router to the self Router
src/router.rs:234
↓ 1 callersFunctionclient_request
(url: &str)
tests/common.rs:35
↓ 1 callersFunctiondata_to_string
(mut data: (String, BoxReader))
src/responder.rs:540
↓ 1 callersMethoddfs
(&self, chunks: &[String])
src/path.rs:234
↓ 1 callersFunctioneat_till_four_bytes
(buf: &[u8], bytes: &[u8; 4])
octane_http/src/eater.rs:33
↓ 1 callersFunctioneat_till_two_bytes
(buf: &[u8], bytes: &[u8; 2])
octane_http/src/eater.rs:17
↓ 1 callersMethodfind_seq
(&self)
src/util.rs:24
↓ 1 callersMethodget
Get the header value by name # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|req, res| { res.send("Hello,
src/responder.rs:116
↓ 1 callersMethodget_cert
(&self)
src/config.rs:229
↓ 1 callersMethodget_key
(&self)
src/config.rs:237
↓ 1 callersMethodget_reader
(self)
src/responder.rs:24
↓ 1 callersMethodhas_body
(&self)
src/responder.rs:433
↓ 1 callersFunctionhttp10_check
(validator: &mut Http)
src/http/http10.rs:5
↓ 1 callersFunctionhttp11_check
(validator: &mut Http)
src/http/http11.rs:4
↓ 1 callersMethodhttp_version
Sets the http version specified, to specify a version the version type should be variant of HttpVersion
src/responder.rs:293
↓ 1 callersMethodis_malformed
(&self)
src/http/mod.rs:43
↓ 1 callersMethodis_some
(&self)
src/responder.rs:31
↓ 1 callersMethodlisten
(mut self, exec: C, server: Arc<Octane>)
src/server_builder.rs:33
↓ 1 callersMethodlisten
Start listening on the port specified, the listen function also starts the Ssl server if the features are enabled and the key/certs are provided # Ex
src/server.rs:125
↓ 1 callersMethodmonth_day
(&self)
src/time.rs:85
↓ 1 callersMethodparse
Parses a request line str and returns a request line struct.
src/request.rs:87
↓ 1 callersFunctionpascal_case
(dat: &str)
octane_macros/src/util.rs:4
↓ 1 callersMethodrun
Fetch the closure according to the request path, run that specific closure.
src/router.rs:259
↓ 1 callersMethodsend
( mut response: (String, BoxReader), mut stream_async: S, )
src/server.rs:213
↓ 1 callersMethodsend
(self, stream: S)
src/error.rs:48
↓ 1 callersMethodserialise
Prepare the `Set-Cookie` Header string from the values in the HashMap
src/cookie.rs:82
↓ 1 callersMethodshould_continue
Returns true if the variant is `Flow::Next`
src/router.rs:48
↓ 1 callersMethodtimeout
Returns the amount of timeout specified in the keep alive header
src/request.rs:388
↓ 1 callersMethodunwrap_leaf
(&self)
src/path.rs:188
↓ 1 callersMethodunwrap_leaf_mut
(&mut self)
src/path.rs:196
↓ 1 callersMethodunwrap_node
(&self)
src/path.rs:172
↓ 1 callersMethodweek_day
pub fn with_stamp(self, stamp: i64) -> Option<Self> { Self::time(stamp) } */
src/time.rs:72
↓ 1 callersMethodwith_router
Appends** the router routes to the routes that the server instance holds, this allows you to independently add routes to a route Router structure and
src/server.rs:104
↓ 1 callersMethodwith_type
Modify the `Content-Type` header as passed in the argument # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(
src/responder.rs:184
Functionacceptor
(settings: &OctaneConfig)
src/tls/openssl.rs:9
Methodadd
(&mut self, closure: Closure)
src/server.rs:247
Methodadd_route
(&mut self, path: &str, closure: Closure)
src/server.rs:255
Methodadd_route
(&mut self, path: &str, closure: Closure)
src/router.rs:468
Methodattachment
Sets the http `Content-Disposition` header field to `attachment` # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", r
src/responder.rs:335
Methodattachment_with_filename
Sets the http `Content-Disposition` header field to `attachment` with the filename and automatically updates the content type with the extension provi
src/responder.rs:358
Functionbasic_header_value_retrival
()
tests/headers.rs:6
Functionbasic_https_hello_world_openssl
()
tests/openssl.rs:6
Functionbasic_https_hello_world_rustls
()
tests/rustls.rs:9
Functionbasic_router
()
tests/router.rs:5
Functionbasic_server_hello
()
tests/server.rs:4
Functionbasic_server_x_req
()
tests/server.rs:18
Functionbasic_url_variables
()
tests/url_variables.rs:5
Functionbody_remainder_keeps_trailing_crlfs
()
octane_http/src/http1x/raw_request.rs:150
Methodcharset
Sets the content type charset # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|req, res| { res.charset("utf
src/responder.rs:429
Methodcheck_starts_with
(&self, other: &PathBuf)
src/path.rs:61
Methodchunks
(&self)
src/path.rs:32
Methodconcat
(&self, other: &PathBuf)
src/path.rs:119
Methodconcat_owned
(&self, other: PathBuf)
src/path.rs:109
next →1–100 of 237, ranked by callers