Lines Matching refs:api_
73 : worker_(worker), api_(nullptr), fd_(-1), shutdown_read_(false) {}
200 api_ = lookup_api(path);
202 if (!api_) {
210 if (!(api_->allowed_methods & (1 << API_METHOD_GET))) {
216 if (!(api_->allowed_methods & (1 << API_METHOD_POST))) {
222 if (!(api_->allowed_methods & (1 << API_METHOD_PUT))) {
275 if (api_->allowed_methods & (1 << i)) {
288 if (api_->allowed_methods & (1 << i)) {
305 if (shutdown_read_ || !api_->require_body) {
341 return api_->handler(*this);